Markdown AST library — high-performance markdown parser for JavaScript/TypeScript.
- ⚡ AssemblyScript Core — Fast & WebAssembly-compatible parsing.
- 📝 Basic Markdown Support — Covers common formatting needs (see list below).
| Category | Syntax | Example |
|---|---|---|
| Headings | #, ##, ### … up to ###### |
## Heading 2 |
| Bold / Italic | **bold**, *italic* |
bold, italic |
| Blockquotes | > quote |
> This is a quote |
| Lists | - item / 1. item |
- Unordered 1. Ordered |
- 🌐 AST → HTML Transformation
- 🎨 Syntax Highlighting for fenced code blocks
- 🔢 LaTeX Support inside Markdown content
npm install @markdown-ast/parserimport { parse } from '@markdown-ast/parser';
const markdown = `
# Welcome
This is **bold**, *italic*, a [link](https://example.com), and some \`inline code\`.
\`\`\`ts
console.log("Hello, AST!");
\`\`\`
`;
const ast = parse(markdown);
console.dir(ast, { depth:null });markdown-ast/
├── packages/
│ └── parser/ # Core AssemblyScript Markdown parser
│ ├── transformer/ # (Planned) AST → HTML transformer
└── package.json # Monorepo workspaces configuration
-
Fork the repo
-
Create your branch:
git checkout -b feature/amazing-feature
-
Commit your changes:
git commit -m "Add amazing feature" -
Push and open a Pull Request
Licensed under the MIT License — see LICENSE for details.
- 📌 Issues: GitHub Issues
- 💡 Discussions: GitHub Discussions