Git Conventional Commit & URL Converter
About Markdown → JSON AST
The Markdown to JSON AST (Abstract Syntax Tree) Parser parses `.md` documents into compliant mdast (Markdown Abstract Syntax Tree) JSON structures with node types (`heading`, `paragraph`, `list`, `code`, `link`), coordinates, and position offsets.
How to Use Markdown → JSON AST
Step 1
Paste your Markdown content into the input pane.
Step 2
Toggle position metadata inclusion (compact vs detailed AST).
Step 3
Review the parsed JSON AST in the tree view.
Step 4
Click "Copy JSON AST".
Practical Use Cases for Markdown → JSON AST
Building Custom Remark / Rehype Markdown Plugins
Inspect the exact mdast node tree produced from Markdown text to build custom Remark and Unified.js processing plugins.
Headless CMS & Dynamic Content Rendering
Convert Markdown into structured JSON trees consumed by custom React, Vue, and Flutter native renderers.
Input & Output Examples
Parsing Heading to JSON AST
`# Hello World`
`{\n "type": "root",\n "children": [\n {\n "type": "heading",\n "depth": 1,\n "children": [{ "type": "text", "value": "Hello World" }]\n }\n ]\n}`Key Features & Performance
- ✓Outputs official Unified.js / mdast specification compliant JSON AST.
- ✓Includes start/end line, column, and character offset position metadata.
- ✓Supports GitHub Flavored Markdown (GFM) extensions (tables, strikethrough, footnotes).
- ✓100% Client-Side AST compiler execution.
- ✓1-Click Copy or Download JSON AST.
Key Terminology & Definitions
mdast (Markdown Abstract Syntax Tree)
A formal specification for representing Markdown syntax as an abstract syntax tree within the unified collective ecosystem.
AST Node Position Metadata
Coordinates storing the exact line, column, and character offset where a token begins and ends in the original source document.
