Skip to main content
The Deno 2 Release Candidate is here
Learn more

markdown-tree

This is a markdown to JSON tree converter for deno, based on rusty_markdown

Example

import { Node } from './mod.ts'
Node.from(`
# This is a markdown string
`)

Result: (converted to plain JSON)

{
  "children": [
    {
      "props": { "type": "heading", "level": 1 },
      "children": [
        { "props": { "type": "text", "content": "This is a markdown string" } }
      ]
    }
  ]
}