New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

flatmarkdown-ast

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flatmarkdown-ast

TypeScript type definitions for the FlatMarkdown AST.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
8
100%
Maintainers
1
Weekly downloads
 
Created
Source

flatmarkdown-ast

TypeScript type definitions for the FlatMarkdown AST.

Installation

npm install flatmarkdown-ast

Usage

import type { AstNode, DocumentNode, HeadingNode } from 'flatmarkdown-ast';

const doc: DocumentNode = {
  type: 'document',
  children: [
    { type: 'heading', level: 1, setext: false, children: [{ type: 'text', value: 'Hello' }] },
  ],
};

Exported Types

All 46 AST node interfaces and the AstNode union type:

Block nodes: DocumentNode, ParagraphNode, HeadingNode, CodeBlockNode, BlockQuoteNode, MultilineBlockQuoteNode, ListNode, ItemNode, TaskItemNode, TableNode, TableRowNode, TableCellNode, ThematicBreakNode, HtmlBlockNode, FootnoteDefinitionNode, DescriptionListNode, DescriptionItemNode, DescriptionTermNode, DescriptionDetailsNode, AlertNode, FrontMatterNode, HeexBlockNode, SubtextNode

Inline nodes: TextNode, SoftbreakNode, LinebreakNode, EmphNode, StrongNode, StrikethroughNode, UnderlineNode, HighlightNode, SuperscriptNode, SubscriptNode, SpoileredTextNode, CodeNode, LinkNode, ImageNode, FootnoteReferenceNode, ShortcodeNode, MathNode, HtmlInlineNode, HeexInlineNode, RawNode, EscapedNode, EscapedTagNode, WikilinkNode

License

MIT

Keywords

flatmarkdown

FAQs

Package last updated on 11 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts