{
  "id": "task_libraries:markdown-parser/javascript",
  "path": "/exapedia/javascript-markdown-parser-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript Markdown parser libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript Markdown parsers read Markdown text and turn it into HTML, a syntax tree, or UI components. These libraries render documentation, comments, and the Markdown that language models return in chat replies."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript Markdown parser libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#marked",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F138"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#micromark",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F154"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mdast-util-from-markdown",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#remark-parse",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#markdown-it",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#remark",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#lezer-markdown",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F240"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#markdown-to-jsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#marked",
          "label": [
            {
              "t": "fact",
              "fact": "F138"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F139"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "HTML output",
            "mdast tree output"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#marked",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F138"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#micromark",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F154"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mdast-util-from-markdown",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#remark-parse",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#markdown-it",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#remark",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#lezer-markdown",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F240"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#markdown-to-jsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "marked",
          "name": [
            {
              "t": "fact",
              "fact": "F138"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/markedjs/marked"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/marked"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/marked@18.2.1/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "marked compiles Markdown to HTML in the browser, on a server, or from its command-line tool. "
            },
            {
              "t": "code",
              "text": "marked.parse"
            },
            {
              "t": "text",
              "text": " returns an HTML string, and "
            },
            {
              "t": "code",
              "text": "marked.use"
            },
            {
              "t": "text",
              "text": " adds extensions that change how text is split into tokens or how tokens become HTML. A "
            },
            {
              "t": "code",
              "text": "walkTokens"
            },
            {
              "t": "text",
              "text": " hook visits every token before output, and with the async option on it can wait on asynchronous work. marked doesn't sanitize the HTML it produces, so output from untrusted Markdown goes through a sanitizer such as DOMPurify."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/marked@18.2.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F138"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F21"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/hexojs/hexo-renderer-marked",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F152"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function(data, options) {\n  const { post_asset_folder, marked: markedCfg, source_dir } = this.config;\n  const { prependRoot, postAsset, dompurify } = markedCfg;\n  const { path, text } = data;\n\n  marked.defaults.extensions = null;\n  marked.defaults.tokenizer = null;\n  marked.defaults.renderer = null;\n  marked.defaults.hooks = null;\n  marked.defaults.walkTokens = null;\n\n  // exec filter to extend marked\n  this.execFilterSync('marked:use', marked.use, { context: this });\n\n  // exec filter to extend renderer\n  this.execFilterSync('marked:renderer', renderer, { context: this });\n\n  // exec filter to extend tokenizer\n  this.execFilterSync('marked:tokenizer', tokenizer, { context: this });\n\n  const extensions = [];\n  this.execFilterSync('marked:extensions', extensions, { context: this });\n  marked.use({ extensions });\n\n  let postPath = '';\n  if (path && post_asset_folder && prependRoot && postAsset) {\n    const Post = this.model('Post');\n    // Windows compatibility, Post.findOne() requires forward slash\n    const source = path.substring(this.source_dir.length).replace(/\\\\/g, '/');\n    const post = Post.findOne({ source });\n    if (post) {\n      const { source: postSource } = post;\n      postPath = join(source_dir, dirname(postSource), basename(postSource, extname(postSource)));\n    }\n  }\n\n  let sanitizer = function(html) { return html; };\n\n  if (dompurify) {\n    if (createDOMPurify === undefined && JSDOM === undefined) {\n      createDOMPurify = require('dompurify');\n      JSDOM = require('jsdom').JSDOM;\n    }\n    const window = new JSDOM('').window;\n    const DOMPurify = createDOMPurify(window);\n    let param = {};\n    if (dompurify !== true) {\n      param = dompurify;\n    }\n    sanitizer = function(html) { return DOMPurify.sanitize(html, param); };\n  }\n\n  marked.use({\n    renderer,\n    tokenizer\n  });\n  return sanitizer(marked.parse(text, Object.assign({\n    // headerIds was removed in marked v8.0.0, but we still need it\n    headerIds: true\n  }, markedCfg, options, { postPath, hexo: this, _headingId: {} })));\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/hexojs/hexo-renderer-marked/blob/830fce8c5cf59ed1309f1f95ba03b3d9a33d403d/lib/renderer.js#L223-L283",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F151"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Projects%20using%20marked%20for%20Markdown%20processing&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F138"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { marked } from 'marked';\n\nconsole.log(marked.parse('# Hello', { async: false }));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/marked@18.2.1/lib/marked.d.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F143"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "micromark",
          "name": [
            {
              "t": "fact",
              "fact": "F154"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/micromark/micromark"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/micromark"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/micromark@4.0.3/readme.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "micromark is a small CommonMark parser that also supports GitHub Flavored Markdown, MDX, math, and frontmatter through extensions. It runs as a state machine that emits concrete tokens with the position of every byte, then compiles those tokens straight to HTML. "
            },
            {
              "t": "code",
              "text": "micromark"
            },
            {
              "t": "text",
              "text": " takes a Markdown string and returns HTML, and raw HTML in the input stays escaped unless "
            },
            {
              "t": "code",
              "text": "allowDangerousHtml"
            },
            {
              "t": "text",
              "text": " is set. The tokens also feed mdast-util-from-markdown, which builds the syntax trees that remark uses."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/micromark@4.0.3/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F154"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F287"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/BotFramework-WebChat",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function renderMarkdownInline(markdown: string): string {\n  const documentFragment = parseDocumentFragmentFromString(micromark(markdown));\n\n  addTargetBlankToHyperlinks(documentFragment);\n\n  const html = serializeDocumentFragmentIntoString(documentFragment);\n\n  return stripParagraphContainer(html);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/BotFramework-WebChat/blob/2b0a11fb0602de6c5004b1303b10c7c1c273fc76/packages/component/src/private/renderMarkdownInline.ts#L9-L17",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=micromark%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F154"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { micromark } from 'micromark';\n\nconsole.log(micromark('# Hello'));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/micromark@4.0.3/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F159"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mdast-util-from-markdown",
          "name": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/syntax-tree/mdast-util-from-markdown"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/mdast-util-from-markdown"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/mdast-util-from-markdown@2.1.0/readme.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "mdast-util-from-markdown turns Markdown into an mdast syntax tree, a JSON structure with one node per heading, paragraph, link, and other element. "
            },
            {
              "t": "code",
              "text": "fromMarkdown"
            },
            {
              "t": "text",
              "text": " takes a string and returns the tree, using micromark's tokens underneath. Extensions add syntax such as GitHub Flavored Markdown or frontmatter. The function only parses, so other utilities turn the tree back into Markdown or HTML, and remark-parse wraps it for use in a unified pipeline."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/mdast-util-from-markdown@2.1.0/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F290"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F291"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F292"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/deepseek-ai/deepseek-harness",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F188"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function parseGfmWithMath(text: string): Root {\n  return recoverLocalImages(fromMarkdown(text, {\n    extensions: [gfm(gfmOptions), cjkFriendlyStrong(), mathCompatibility(), math()],\n    mdastExtensions: [gfmFromMarkdown(), mathFromMarkdown(), windowsPathDestinations()],\n  }), text)\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/deepseek-ai/deepseek-harness/blob/2e39e70496aa02986ca6a820c5d497e816b69d7e/packages/client/ui-primitives/src/markdown/parse.ts#L44-L49",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=mdast-util-from-markdown%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { fromMarkdown } from 'mdast-util-from-markdown';\n\nconst tree = fromMarkdown('# Hello');\nconsole.log(JSON.stringify(tree, null, 2));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/mdast-util-from-markdown@2.1.0/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "remark-parse",
          "name": [
            {
              "t": "fact",
              "fact": "F190"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/remarkjs/remark"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/remark-parse"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/remark-parse@11.0.0/readme.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "remark-parse is the plugin that adds Markdown parsing to unified, a framework that runs content through parse, transform, and output steps. "
            },
            {
              "t": "code",
              "text": "unified().use(remarkParse)"
            },
            {
              "t": "text",
              "text": " reads Markdown into an mdast syntax tree, and further plugins inspect or change that tree. remark-parse handles input only: writing Markdown back out needs remark-stringify, and the remark package combines both with unified. Syntax extensions such as remark-gfm plug in alongside it."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/remark-parse@11.0.0/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F190"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F294"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F296"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F297"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/cloudposse/atmos",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function normalizeMdxToMarkdown(source) {\n  if (typeof source !== 'string' || !source.length) return '';\n  const file = await unified()\n    .use(remarkParse)\n    .use(remarkMdx)\n    .use(remarkNormalizeMdx)\n    .use(remarkStringify, {\n      bullet: '-',\n      fences: true,\n      listItemIndent: 'one',\n      rule: '-',\n      emphasis: '_',\n      strong: '*',\n    })\n    .process(stripHtmlComments(source));\n  return String(file);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/cloudposse/atmos/blob/148a35b6bab8de814420c6c218f38c9306894e47/website/plugins/docusaurus-plugin-llms-txt/src/mdx-normalize.mjs#L362-L378",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=remark-parse%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F190"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\n\nconst tree = unified().use(remarkParse).parse('# Hello');\nconsole.log(JSON.stringify(tree, null, 2));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/remark-parse@11.0.0/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "markdown-it",
          "name": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/markdown-it/markdown-it"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/markdown-it"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/markdown-it@15.0.3/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "markdown-it follows the CommonMark spec and adds extensions such as URL autolinking and typographic replacements. "
            },
            {
              "t": "code",
              "text": "new MarkdownIt()"
            },
            {
              "t": "text",
              "text": " creates a parser, and "
            },
            {
              "t": "code",
              "text": "render"
            },
            {
              "t": "text",
              "text": " turns Markdown into HTML in one call. "
            },
            {
              "t": "code",
              "text": "parse"
            },
            {
              "t": "text",
              "text": " returns the token array instead, so code can inspect or change tokens before rendering. Rules can be added or replaced, and community plugins add syntax such as footnotes. Raw HTML in the input is off by default, and the "
            },
            {
              "t": "code",
              "text": "html"
            },
            {
              "t": "text",
              "text": " option turns it on."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/markdown-it@15.0.3/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/TryGhost/Ghost",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "const selectRenderer = function (options: RenderOptions): MarkdownIt {\n  const version = semver.coerce(options.ghostVersion || '4.0');\n\n  if (version && semver.satisfies(version, '<4.x')) {\n    if (renderers['<4.x']) {\n      return renderers['<4.x'];\n    }\n    const markdownIt = new MarkdownIt({ html: true, breaks: true, linkify: true })\n      .use(markdownItFootnote)\n      .use(markdownItLazyHeaders)\n      .use(markdownItMark)\n      .use(markdownItImageLazyLoading)\n      .use(namedHeaders(options))\n      .use(markdownItSub)\n      .use(markdownItSup);\n    markdownIt.linkify.set({ fuzzyLink: false });\n    renderers['<4.x'] = markdownIt;\n    return markdownIt;\n  } else {\n    if (renderers.latest) {\n      return renderers.latest;\n    }\n    const markdownIt = new MarkdownIt({ html: true, breaks: true, linkify: true })\n      .use(markdownItFootnote)\n      .use(markdownItLazyHeaders)\n      .use(markdownItMark)\n      .use(markdownItImageLazyLoading)\n      .use(namedHeaders(options))\n      .use(markdownItSub)\n      .use(markdownItSup);\n    markdownIt.linkify.set({ fuzzyLink: false });\n    renderers.latest = markdownIt;\n    return markdownIt;\n  }\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/TryGhost/Ghost/blob/5ad154310fa5b325c2201ff3caeaa4daee8172d3/koenig/kg-markdown-html-renderer/src/markdown-html-renderer.ts#L58-L92",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Projects%20using%20markdown-it%20for%20Markdown%20processing&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import MarkdownIt from 'markdown-it';\n\nconst parser = new MarkdownIt();\nconsole.log(parser.render('# Hello'));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/markdown-it@15.0.3/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "remark",
          "name": [
            {
              "t": "fact",
              "fact": "F224"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/remarkjs/remark"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/remark"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/remark@15.0.1/readme.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "remark transforms Markdown with plugins that inspect and change an mdast syntax tree. The "
            },
            {
              "t": "code",
              "text": "remark"
            },
            {
              "t": "text",
              "text": " package combines unified with remark-parse and remark-stringify, so one processor reads Markdown, runs plugins, and writes Markdown back out. "
            },
            {
              "t": "code",
              "text": "remark().process"
            },
            {
              "t": "text",
              "text": " returns the result as a file. HTML output takes a plugin such as remark-html, and GitHub Flavored Markdown features such as tables come from remark-gfm. The project lists more than a hundred plugins, and remark-cli checks and formats Markdown files from the command line."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/remark@15.0.1/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F224"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F73"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F74"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/vercel/next.js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export default async function markdownToHtml(markdown: string) {\n  const result = await remark().use(html).process(markdown);\n  return result.toString();\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/vercel/next.js/blob/9c35f21f386294e63a5b0259b4d94da6a6f4731f/examples/blog-starter/src/lib/markdownToHtml.ts#L4-L7",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F237"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Projects%20using%20remark%20for%20Markdown%20processing&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F224"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { remark } from 'remark';\n\nconst file = await remark().process('# Hello');\nconsole.log(String(file));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/remark@15.0.1/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F229"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "lezer-markdown",
          "name": [
            {
              "t": "fact",
              "fact": "F240"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/lezer-parser/markdown"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@lezer/markdown"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/@lezer/markdown@1.8.1/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "@lezer/markdown is an incremental CommonMark parser built for code editors. It produces compact Lezer syntax trees and reuses parts of the previous tree when the text changes, so an edit reparses only what changed. "
            },
            {
              "t": "code",
              "text": "parser.parse"
            },
            {
              "t": "text",
              "text": " returns the tree, and "
            },
            {
              "t": "code",
              "text": "configure"
            },
            {
              "t": "text",
              "text": " adds extensions. The parser doesn't produce HTML and doesn't check that link references exist. CodeMirror's Markdown language package uses it for highlighting and editing support."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@lezer/markdown@1.8.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F240"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F298"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F299"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F300"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F301"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F302"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F303"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/enso-org/enso",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F256"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "parse(ctx: BlockContext, line: Line) {\n        if (!isFirstLine(ctx)) {\n          return false\n        }\n        const regex = /^\\s*---\\s*$/\n        const start = ctx.lineStart\n        if (regex.test(line.text)) {\n          const contentStart = ctx.lineStart + line.text.length\n          const startMarker = ctx.elt('YAMLMarker', ctx.lineStart, contentStart)\n          while (ctx.nextLine()) {\n            if (regex.test(line.text)) {\n              const content = ctx.elt('YAMLContent', contentStart, ctx.lineStart)\n              const end = ctx.lineStart + line.text.length\n              const endMarker = ctx.elt('YAMLMarker', ctx.lineStart, end)\n              ctx.addElement(\n                ctx.elt('YAMLFrontMatter', start, end, [startMarker, content, endMarker]),\n              )\n              ctx.nextLine()\n              return true\n            }\n          }\n          return true\n        } else {\n          return false\n        }\n      }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/enso-org/enso/blob/4135f929f1046ee4ab62d9d09c155377e8542a1f/app/ydoc-shared/src/ast/ensoMarkdown.ts#L43-L68",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F255"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40lezer/markdown%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F240"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { parser } from '@lezer/markdown';\n\nconst tree = parser.parse('# Hello');\nconsole.log(tree.toString());\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@lezer/markdown@1.8.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F245"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "markdown-to-jsx",
          "name": [
            {
              "t": "fact",
              "fact": "F258"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/quantizor/markdown-to-jsx"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/markdown-to-jsx"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/markdown-to-jsx@9.10.6/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "markdown-to-jsx compiles Markdown, including GitHub Flavored Markdown tables and task lists, into React elements. Inline HTML in the Markdown is parsed into JSX, so rendering needs no "
            },
            {
              "t": "code",
              "text": "dangerouslySetInnerHTML"
            },
            {
              "t": "text",
              "text": ". The "
            },
            {
              "t": "code",
              "text": "overrides"
            },
            {
              "t": "text",
              "text": " option replaces any tag with a custom component or adds props to it. Separate entry points output HTML strings, Markdown, a syntax tree, or elements for React Native, SolidJS, and Vue."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/markdown-to-jsx@9.10.6/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F258"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F304"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F305"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F306"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F307"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F274"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mldangelo/personal-site",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F274"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function planMarkdownHeadingAnchors(\n  markdown: string,\n  pageIds: Iterable<string> = PAGE_IDS,\n): MarkdownHeadingPlan {\n  const headings: Array<{ source: string; legacy: string }> = [];\n\n  const ast = parser(markdown, {\n    slugify: (source, legacySlugify) => {\n      const legacy = legacySlugify(source);\n\n      headings.push({ source, legacy });\n\n      return legacy;\n    },\n  });\n\n  const { footnoteIds, ids: reservedIds } = collectReservedMarkdownIds(\n    ast,\n    pageIds,\n  );\n  const ids = createUniqueHeadingIds(\n    headings.map(({ source }) => source),\n    reservedIds,\n  );\n  const renderIdsBySource = new Map<string, string[]>();\n\n  for (const [index, { source }] of headings.entries()) {\n    renderIdsBySource.set(source, [\n      ...(renderIdsBySource.get(source) ?? []),\n      ids[index],\n    ]);\n  }\n\n  // markdown-to-jsx calls the same slugifier for footnote footer ids after it\n  // renders the headings. Appending the original footnote id keeps that call\n  // paired with the href the parser already emitted, including when a heading\n  // and footnote use the exact same source text.\n  for (const [source, id] of footnoteIds) {\n    renderIdsBySource.set(source, [\n      ...(renderIdsBySource.get(source) ?? []),\n      id,\n    ]);\n  }\n\n  const callsBySource = new Map<string, number>();\n  const slugify = (source: string): string => {\n    const sourceIds = renderIdsBySource.get(source);\n    if (!sourceIds?.length) {\n      // markdown-to-jsx also uses this callback for generated structures such\n      // as footnote footer ids. Their links already target the library's own\n      // slug scheme, so changing an unplanned value here would break the pair.\n      return legacySlugify(source);\n    }\n\n    const call = callsBySource.get(source) ?? 0;\n    callsBySource.set(source, call + 1);\n\n    // React Strict Mode may evaluate markdown-to-jsx's memoized compiler more\n    // than once. Cycling over each source's complete id sequence makes every\n    // full evaluation deterministic instead of exhausting a one-shot cursor.\n    return sourceIds[call % sourceIds.length];\n  };\n\n  const canonicalIds = new Set(ids);\n  const aliases = new Map<string, string>();\n  const claimedIds = new Set([...reservedIds, ...canonicalIds]);\n\n  for (const [index, { legacy }] of headings.entries()) {\n    if (!legacy || claimedIds.has(legacy)) {\n      continue;\n    }\n\n    aliases.set(ids[index], legacy);\n    claimedIds.add(legacy);\n  }\n\n  const footnotesByLabel = new Map(\n    [...footnoteIds].map(([source, id]) => [source.toLowerCase(), id]),\n  );\n  const footnoteId = (label: string) =>\n    footnotesByLabel.get(label.toLowerCase());\n\n  return { aliases, footnoteId, slugify };\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mldangelo/personal-site/blob/d7326f0c0d2c2e69fddc95575a19b16cf93f8a2a/src/lib/anchors.ts#L145-L228",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F273"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=markdown-to-jsx%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F258"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { compiler } from 'markdown-to-jsx/html';\n\nconsole.log(compiler('# Hello'));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/markdown-to-jsx@9.10.6/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F263"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript Markdown parser should I use?",
      "a": [
        {
          "t": "text",
          "text": "To turn Markdown into HTML, use "
        },
        {
          "t": "link",
          "href": "#marked",
          "label": [
            {
              "t": "text",
              "text": "marked"
            }
          ]
        },
        {
          "t": "text",
          "text": " or "
        },
        {
          "t": "link",
          "href": "#markdown-it",
          "label": [
            {
              "t": "text",
              "text": "markdown-it"
            }
          ]
        },
        {
          "t": "text",
          "text": ". marked output needs a sanitizer such as DOMPurify for untrusted input, while markdown-it disables raw HTML by default. To inspect or change documents with plugins, use "
        },
        {
          "t": "link",
          "href": "#remark",
          "label": [
            {
              "t": "text",
              "text": "remark"
            }
          ]
        },
        {
          "t": "text",
          "text": ". In React, "
        },
        {
          "t": "link",
          "href": "#markdown-to-jsx",
          "label": [
            {
              "t": "text",
              "text": "markdown-to-jsx"
            }
          ]
        },
        {
          "t": "text",
          "text": " renders Markdown as components."
        }
      ]
    },
    {
      "q": "How do I render Markdown in React?",
      "a": [
        {
          "t": "link",
          "href": "#markdown-to-jsx",
          "label": [
            {
              "t": "text",
              "text": "markdown-to-jsx"
            }
          ]
        },
        {
          "t": "text",
          "text": " turns Markdown into React elements and parses inline HTML into JSX, so the page needs no "
        },
        {
          "t": "code",
          "text": "dangerouslySetInnerHTML"
        },
        {
          "t": "text",
          "text": ". Its "
        },
        {
          "t": "code",
          "text": "overrides"
        },
        {
          "t": "text",
          "text": " option replaces any rendered tag with a custom component."
        }
      ]
    },
    {
      "q": "What is micromark?",
      "a": [
        {
          "t": "text",
          "text": "micromark is a small CommonMark parser that turns Markdown into tokens, with the position of every byte, and compiles them straight to HTML. Raw HTML in the input stays escaped unless "
        },
        {
          "t": "code",
          "text": "allowDangerousHtml"
        },
        {
          "t": "text",
          "text": " is set. "
        },
        {
          "t": "link",
          "href": "#mdast-util-from-markdown",
          "label": [
            {
              "t": "text",
              "text": "mdast-util-from-markdown"
            }
          ]
        },
        {
          "t": "text",
          "text": " and remark build their syntax trees from micromark's tokens."
        }
      ]
    },
    {
      "q": "marked vs markdown-it: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Both turn Markdown into HTML in one call and accept extensions. markdown-it disables raw HTML by default and returns its token array from "
        },
        {
          "t": "code",
          "text": "parse"
        },
        {
          "t": "text",
          "text": ". marked passes HTML through without sanitizing, and its "
        },
        {
          "t": "code",
          "text": "walkTokens"
        },
        {
          "t": "text",
          "text": " hook can run asynchronous work before output."
        }
      ]
    },
    {
      "q": "Does marked sanitize HTML?",
      "a": [
        {
          "t": "text",
          "text": "No. marked doesn't sanitize its output, and its README recommends running the HTML through a sanitizer such as DOMPurify, sanitize-html, or insane."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, marked",
      "display": "Marked",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, marked",
      "display": "473.2M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, marked",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, marked",
      "display": "18.2.1",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, marked",
      "display": "v18.2.1",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, marked",
      "display": "37.3K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "HTML output, marked",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "GFM tables, marked",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Syntax plugins, marked",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Async processing, marked",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Output formats, marked",
      "display": "HTML",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, marked",
      "display": "npm install marked",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, marked",
      "display": "Converts Markdown into HTML through a lexer and customizable renderer.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, marked",
      "display": "Supports asynchronous token work",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, marked",
      "display": "With async on, parse waits for walkTokens work before returning.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, marked",
      "display": "Extends tokenization and rendering",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, marked",
      "display": "marked.use registers custom syntax and renderers.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, marked",
      "display": "HTML output needs sanitizing",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, marked",
      "display": "Output from untrusted Markdown needs a sanitizer such as DOMPurify.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations lead, marked",
      "display": "Default settings are shared globally",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "limitations, marked",
      "display": "A separate Marked instance keeps its own options and extensions.",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Quickstart, marked",
      "display": "import { marked } from 'marked';\nconst html = marked.parse('# Marked in Node.js');\nconsole.log(html);\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function, marked",
      "display": "function(data, options) {\n  const { post_asset_folder, marked: markedCfg, source_dir } = this.config;\n  const { prependRoot, postAsset, dompurify } = markedCfg;\n  const { path, text } = data;\n\n  marked.defaults.extensions = null;\n  marked.defaults.tokenizer = null;\n  marked.defaults.renderer = null;\n  marked.defaults.hooks = null;\n  marked.defaults.walkTokens = null;\n\n  // exec filter to extend marked\n  this.execFilterSync('marked:use', marked.use, { context: this });\n\n  // exec filter to extend renderer\n  this.execFilterSync('marked:renderer', renderer, { context: this });\n\n  // exec filter to extend tokenizer\n  this.execFilterSync('marked:tokenizer', tokenizer, { context: this });\n\n  const extensions = [];\n  this.execFilterSync('marked:extensions', extensions, { context: this });\n  marked.use({ extensions });\n\n  let postPath = '';\n  if (path && post_asset_folder && prependRoot && postAsset) {\n    const Post = this.model('Post');\n    // Windows compatibility, Post.findOne() requires forward slash\n    const source = path.substring(this.source_dir.length).replace(/\\\\/g, '/');\n    const post = Post.findOne({ source });\n    if (post) {\n      const { source: postSource } = post;\n      postPath = join(source_dir, dirname(postSource), basename(postSource, extname(postSource)));\n    }\n  }\n\n  let sanitizer = function(html) { return html; };\n\n  if (dompurify) {\n    if (createDOMPurify === undefined && JSDOM === undefined) {\n      createDOMPurify = require('dompurify');\n      JSDOM = require('jsdom').JSDOM;\n    }\n    const window = new JSDOM('').window;\n    const DOMPurify = createDOMPurify(window);\n    let param = {};\n    if (dompurify !== true) {\n      param = dompurify;\n    }\n    sanitizer = function(html) { return DOMPurify.sanitize(html, param); };\n  }\n\n  marked.use({\n    renderer,\n    tokenizer\n  });\n  return sanitizer(marked.parse(text, Object.assign({\n    // headerIds was removed in marked v8.0.0, but we still need it\n    headerIds: true\n  }, markedCfg, options, { postPath, hexo: this, _headingId: {} })));\n}\n",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project function reference, marked",
      "display": "renderer.js · Markdown renderer()",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project repository, marked",
      "display": "hexojs/hexo-renderer-marked",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project stars, hexojs/hexo-renderer-marked",
      "display": "183",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Project push date, hexojs/hexo-renderer-marked",
      "display": "Aug 2026",
      "asOf": "2026-08-08"
    },
    "F28": {
      "label": "Library name, markdown-it",
      "display": "markdown-it",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Monthly downloads, markdown-it",
      "display": "148.9M",
      "asOf": "2026-11-15"
    },
    "F30": {
      "label": "License, markdown-it",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Package release, markdown-it",
      "display": "15.0.3",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Undated package release, markdown-it",
      "display": "v15.0.3",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Repository stars, markdown-it",
      "display": "22.0K",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "HTML output, markdown-it",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "GFM tables, markdown-it",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Syntax plugins, markdown-it",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Output formats, markdown-it",
      "display": "HTML",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Install, markdown-it",
      "display": "npm install markdown-it",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "What it does, markdown-it",
      "display": "Parses Markdown into tokens and renders them as HTML.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, markdown-it",
      "display": "Allows custom parsing rules",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, markdown-it",
      "display": "Rules can be added, or existing ones replaced.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths lead, markdown-it",
      "display": "Exposes tokens before rendering",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths, markdown-it",
      "display": "parse returns the token array before rendering.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, markdown-it",
      "display": "Raw HTML starts disabled",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, markdown-it",
      "display": "The html option turns raw HTML tags on.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations lead, markdown-it",
      "display": "Enabled HTML needs sanitizing",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations, markdown-it",
      "display": "With HTML on, the output needs an external sanitizer.",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Quickstart, markdown-it",
      "display": "import MarkdownIt from 'markdown-it'\nconst md = new MarkdownIt()\nconst result = md.render('# markdown-it rulezz!')\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function, markdown-it",
      "display": "const selectRenderer = function (options: RenderOptions): MarkdownIt {\n  const version = semver.coerce(options.ghostVersion || '4.0');\n\n  if (version && semver.satisfies(version, '<4.x')) {\n    if (renderers['<4.x']) {\n      return renderers['<4.x'];\n    }\n    const markdownIt = new MarkdownIt({ html: true, breaks: true, linkify: true })\n      .use(markdownItFootnote)\n      .use(markdownItLazyHeaders)\n      .use(markdownItMark)\n      .use(markdownItImageLazyLoading)\n      .use(namedHeaders(options))\n      .use(markdownItSub)\n      .use(markdownItSup);\n    markdownIt.linkify.set({ fuzzyLink: false });\n    renderers['<4.x'] = markdownIt;\n    return markdownIt;\n  } else {\n    if (renderers.latest) {\n      return renderers.latest;\n    }\n    const markdownIt = new MarkdownIt({ html: true, breaks: true, linkify: true })\n      .use(markdownItFootnote)\n      .use(markdownItLazyHeaders)\n      .use(markdownItMark)\n      .use(markdownItImageLazyLoading)\n      .use(namedHeaders(options))\n      .use(markdownItSub)\n      .use(markdownItSup);\n    markdownIt.linkify.set({ fuzzyLink: false });\n    renderers.latest = markdownIt;\n    return markdownIt;\n  }\n};\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function reference, markdown-it",
      "display": "markdown-html-renderer.ts · selectRenderer()",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project repository, markdown-it",
      "display": "TryGhost/Ghost",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project stars, TryGhost/Ghost",
      "display": "55.8K",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project push date, TryGhost/Ghost",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F54": {
      "label": "Library name, remark",
      "display": "remark",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Monthly downloads, remark",
      "display": "36.7M",
      "asOf": "2026-11-15"
    },
    "F56": {
      "label": "License, remark",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Package release, remark",
      "display": "15.0.1",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Undated package release, remark",
      "display": "v15.0.1",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Repository stars, remark",
      "display": "9.0K",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "HTML output, remark",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "GFM tables, remark",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Syntax plugins, remark",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Async processing, remark",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Output formats, remark",
      "display": "Markdown",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "Install, remark",
      "display": "npm install remark",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "What it does, remark",
      "display": "Parses, transforms, and serializes Markdown through a plugin pipeline.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, remark",
      "display": "Produces Markdown after changes",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, remark",
      "display": "One processor parses Markdown and writes it back out.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths lead, remark",
      "display": "Exposes a document syntax tree",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "strengths, remark",
      "display": "Plugins work on the mdast tree between parsing and output.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, remark",
      "display": "HTML output needs a plugin",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, remark",
      "display": "HTML output takes a compiler plugin such as remark-html.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "limitations lead, remark",
      "display": "GFM syntax needs a plugin",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "limitations, remark",
      "display": "remark-gfm adds tables and task lists.",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Quickstart, remark",
      "display": "import {remark} from 'remark'\n\nconst value = `\n# Moons of Neptune\n\n1. Naiad\n2. Thalassa\n3. Despine\n4. …\n`\n\nconst file = await remark()\n  .data('settings', {\n    bulletOrdered: ')',\n    incrementListMarker: false,\n    setext: true\n  })\n  .process(value)\n\nconsole.log(String(file))\n",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project function, remark",
      "display": "export default async function markdownToHtml(markdown: string) {\n  const result = await remark().use(html).process(markdown);\n  return result.toString();\n}\n",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project function reference, remark",
      "display": "markdownToHtml.ts · markdownToHtml()",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project repository, remark",
      "display": "vercel/next.js",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Project stars, vercel/next.js",
      "display": "143.6K",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Project push date, vercel/next.js",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F81": {
      "label": "Library name, showdown",
      "display": "Showdown",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Monthly downloads, showdown",
      "display": "6.8M",
      "asOf": "2026-11-15"
    },
    "F83": {
      "label": "License, showdown",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Package release, showdown",
      "display": "2.1.0",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Undated package release, showdown",
      "display": "v2.1.0",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Repository stars, showdown",
      "display": "14.9K",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "HTML output, showdown",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "GFM tables, showdown",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Syntax plugins, showdown",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Output formats, showdown",
      "display": "HTML",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Install, showdown",
      "display": "npm install showdown",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "What it does, showdown",
      "display": "Converts Markdown into HTML with configurable options and extensions.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths lead, showdown",
      "display": "Applies named Markdown flavors",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths, showdown",
      "display": "Use setFlavor to apply a preset of conversion options.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "strengths lead, showdown",
      "display": "Adds syntax through language extensions",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "strengths, showdown",
      "display": "Use a language extension to recognize custom Markdown syntax.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations lead, showdown",
      "display": "HTML output needs sanitizing",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "limitations, showdown",
      "display": "Filter converted HTML before displaying untrusted content.",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "limitations lead, showdown",
      "display": "Tables need an explicit option",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "limitations, showdown",
      "display": "Enable tables before converting GitHub-style tabular Markdown.",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Quickstart, showdown",
      "display": "var showdown  = require('showdown'),\n    converter = new showdown.Converter(),\n    text      = '# hello, markdown!',\n    html      = converter.makeHtml(text);\n",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Project function, showdown",
      "display": "const makeMarkdownConverter = (showdown: Showdown) => {\n  const markdownConverter = new showdown.Converter({\n    extensions: ['enableCheckboxes', 'removeLineBreaks'],\n  });\n  markdownConverter.setFlavor('github');\n  markdownConverter.setOption('ghMentions', false);\n  markdownConverter.setOption('literalMidWordUnderscores', true);\n  markdownConverter.setOption('simpleLineBreaks', false); // override GFM\n  markdownConverter.setOption('smoothLivePreview', true);\n  markdownConverter.setOption('splitAdjacentBlockquotes', true);\n  markdownConverter.setOption('strikethrough', true); // ~~strikethrough~~\n  markdownConverter.setOption('tables', true); // table syntax\n\n  return markdownConverter;\n};\n",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Project function reference, showdown",
      "display": "render-note-to-html.ts · makeMarkdownConverter()",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Project repository, showdown",
      "display": "Automattic/simplenote-electron",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Project stars, Automattic/simplenote-electron",
      "display": "5.3K",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Project push date, Automattic/simplenote-electron",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F107": {
      "label": "Developer need",
      "display": "Async work on tokens",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose marked",
      "display": "awaits walkTokens before output",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "running asynchronous token work",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "When to consider remark",
      "display": "Markdown output is required after transformations",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need",
      "display": "Inspecting tokens before rendering",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Why choose markdown-it",
      "display": "the public parse token array",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need in introduction",
      "display": "inspecting tokens before rendering",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "When to consider marked",
      "display": "native asynchronous token work is required",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Developer need",
      "display": "Rewriting Markdown documents",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Why choose remark",
      "display": "a parser and serializer in one processor",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Developer need in introduction",
      "display": "rewriting Markdown documents",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "Developer need",
      "display": "Applying named conversion presets",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "Why choose showdown",
      "display": "named Markdown flavors",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "Developer need in introduction",
      "display": "applying named conversion presets",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "Page introduction",
      "display": "JavaScript Markdown parser libraries let developers parse or render Markdown content.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Which parser directly renders Markdown into HTML?",
      "display": "Marked converts Markdown into HTML.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Which parser directly renders Markdown into HTML?",
      "display": "markdown-it parses tokens and renders HTML.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Which parser directly renders Markdown into HTML?",
      "display": "Showdown is a Markdown-to-HTML converter.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: What does the remark package output by default?",
      "display": "The remark package combines Markdown parsing with Markdown serialization.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does remark include HTML generation in core?",
      "display": "remark-html is a plugin that compiles Markdown into HTML.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Does remark support GitHub tables without extra syntax setup?",
      "display": "remark-gfm adds parsing and serialization for GFM features including tables and task lists.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Does Marked sanitize the generated HTML?",
      "display": "Marked does not sanitize HTML; its own usage example applies DOMPurify to the parsed result.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Can Marked wait for asynchronous token processing?",
      "display": "With async enabled, walkTokens may be async, and parse returns a promise after token work resolves.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Why can Marked settings affect another part of an application?",
      "display": "The default instance stores options and extensions globally; a new Marked instance isolates them.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Does markdown-it preserve embedded HTML by default?",
      "display": "Its default preset disables HTML input.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Does markdown-it preserve embedded HTML by default?",
      "display": "When HTML is enabled, the recommended strategy includes an external sanitizer.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Can markdown-it expose parsed tokens before HTML rendering?",
      "display": "The public parse method returns a list of block tokens.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: Does Showdown parse tables with its base defaults?",
      "display": "The tables option is disabled by default and must be enabled for table syntax.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "FAQ: Does selecting a Showdown flavor replace HTML sanitization?",
      "display": "Flavors apply conversion option presets.",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "FAQ: Does selecting a Showdown flavor replace HTML sanitization?",
      "display": "Showdown does not sanitize its input.",
      "asOf": "2026-11-17"
    },
    "F137": {
      "label": "FAQ: Can remark processSync run asynchronous transforms?",
      "display": "The underlying unified processSync method throws when asynchronous transforms are configured.",
      "asOf": "2026-11-17"
    },
    "F138": {
      "label": "Library name, marked",
      "display": "marked",
      "asOf": "2026-11-19"
    },
    "F139": {
      "label": "Monthly downloads, marked",
      "display": "486.2M",
      "asOf": "2026-11-19"
    },
    "F140": {
      "label": "License, marked",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F141": {
      "label": "Package release, marked",
      "display": "18.2.1",
      "asOf": "2026-11-19"
    },
    "F142": {
      "label": "Package release date, marked",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F143": {
      "label": "Install, marked",
      "display": "npm install marked@18.2.1",
      "asOf": "2026-11-19"
    },
    "F144": {
      "label": "Quickstart, marked",
      "display": "import { marked } from 'marked';\n\nconsole.log(marked.parse('# Hello', { async: false }));\n",
      "asOf": "2026-11-19"
    },
    "F145": {
      "label": "Repository stars, marked",
      "display": "37.3K",
      "asOf": "2026-11-19"
    },
    "F146": {
      "label": "HTML output, marked",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F147": {
      "label": "mdast tree output, marked",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F148": {
      "label": "Representation, marked",
      "display": "Markdown-to-HTML compiler with lexer/token and renderer extension APIs",
      "asOf": "2026-11-19"
    },
    "F149": {
      "label": "HTML policy, marked",
      "display": "Publisher warns that Marked does not sanitize generated HTML",
      "asOf": "2026-11-19"
    },
    "F150": {
      "label": "Project function, marked",
      "display": "function(data, options) {\n  const { post_asset_folder, marked: markedCfg, source_dir } = this.config;\n  const { prependRoot, postAsset, dompurify } = markedCfg;\n  const { path, text } = data;\n\n  marked.defaults.extensions = null;\n  marked.defaults.tokenizer = null;\n  marked.defaults.renderer = null;\n  marked.defaults.hooks = null;\n  marked.defaults.walkTokens = null;\n\n  // exec filter to extend marked\n  this.execFilterSync('marked:use', marked.use, { context: this });\n\n  // exec filter to extend renderer\n  this.execFilterSync('marked:renderer', renderer, { context: this });\n\n  // exec filter to extend tokenizer\n  this.execFilterSync('marked:tokenizer', tokenizer, { context: this });\n\n  const extensions = [];\n  this.execFilterSync('marked:extensions', extensions, { context: this });\n  marked.use({ extensions });\n\n  let postPath = '';\n  if (path && post_asset_folder && prependRoot && postAsset) {\n    const Post = this.model('Post');\n    // Windows compatibility, Post.findOne() requires forward slash\n    const source = path.substring(this.source_dir.length).replace(/\\\\/g, '/');\n    const post = Post.findOne({ source });\n    if (post) {\n      const { source: postSource } = post;\n      postPath = join(source_dir, dirname(postSource), basename(postSource, extname(postSource)));\n    }\n  }\n\n  let sanitizer = function(html) { return html; };\n\n  if (dompurify) {\n    if (createDOMPurify === undefined && JSDOM === undefined) {\n      createDOMPurify = require('dompurify');\n      JSDOM = require('jsdom').JSDOM;\n    }\n    const window = new JSDOM('').window;\n    const DOMPurify = createDOMPurify(window);\n    let param = {};\n    if (dompurify !== true) {\n      param = dompurify;\n    }\n    sanitizer = function(html) { return DOMPurify.sanitize(html, param); };\n  }\n\n  marked.use({\n    renderer,\n    tokenizer\n  });\n  return sanitizer(marked.parse(text, Object.assign({\n    // headerIds was removed in marked v8.0.0, but we still need it\n    headerIds: true\n  }, markedCfg, options, { postPath, hexo: this, _headingId: {} })));\n}\n",
      "asOf": "2026-11-19"
    },
    "F151": {
      "label": "Project source file, marked",
      "display": "lib/renderer.js",
      "asOf": "2026-11-19"
    },
    "F152": {
      "label": "Project full_name, marked",
      "display": "hexojs/hexo-renderer-marked",
      "asOf": "2026-11-19"
    },
    "F153": {
      "label": "Project stargazers_count, marked",
      "display": "183",
      "asOf": "2026-11-19"
    },
    "F154": {
      "label": "Library name, micromark",
      "display": "micromark",
      "asOf": "2026-11-19"
    },
    "F155": {
      "label": "Monthly downloads, micromark",
      "display": "363.2M",
      "asOf": "2026-11-19"
    },
    "F156": {
      "label": "License, micromark",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F157": {
      "label": "Package release, micromark",
      "display": "4.0.3",
      "asOf": "2026-11-19"
    },
    "F158": {
      "label": "Package release date, micromark",
      "display": "Sep 2026",
      "asOf": "2026-11-19"
    },
    "F159": {
      "label": "Install, micromark",
      "display": "npm install micromark@4.0.3",
      "asOf": "2026-11-19"
    },
    "F160": {
      "label": "Quickstart, micromark",
      "display": "import { micromark } from 'micromark';\n\nconsole.log(micromark('# Hello'));\n",
      "asOf": "2026-11-19"
    },
    "F161": {
      "label": "Official description, micromark",
      "display": "small commonmark compliant markdown parser with positional info and concrete tokens",
      "asOf": "2026-11-19"
    },
    "F162": {
      "label": "Quickstart source file, micromark",
      "display": "readme.md",
      "asOf": "2026-11-19"
    },
    "F163": {
      "label": "Repository stars, micromark",
      "display": "2.2K",
      "asOf": "2026-11-19"
    },
    "F164": {
      "label": "HTML output, micromark",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F165": {
      "label": "mdast tree output, micromark",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F166": {
      "label": "Representation, micromark",
      "display": "CommonMark HTML compiler with concrete tokens/positional syntax infrastructure",
      "asOf": "2026-11-19"
    },
    "F167": {
      "label": "Streaming boundary, micromark",
      "display": "Separate published stream entry is available; ordinary micromark call returns compiled HTML",
      "asOf": "2026-11-19"
    },
    "F168": {
      "label": "Project function, micromark",
      "display": "function renderMarkdownInline(markdown: string): string {\n  const documentFragment = parseDocumentFragmentFromString(micromark(markdown));\n\n  addTargetBlankToHyperlinks(documentFragment);\n\n  const html = serializeDocumentFragmentIntoString(documentFragment);\n\n  return stripParagraphContainer(html);\n}\n",
      "asOf": "2026-11-19"
    },
    "F169": {
      "label": "Project source file, micromark",
      "display": "packages/component/src/private/renderMarkdownInline.ts",
      "asOf": "2026-11-19"
    },
    "F170": {
      "label": "Project full_name, micromark",
      "display": "microsoft/BotFramework-WebChat",
      "asOf": "2026-11-19"
    },
    "F171": {
      "label": "Project stargazers_count, micromark",
      "display": "1.8K",
      "asOf": "2026-11-19"
    },
    "F172": {
      "label": "Library name, mdast-util-from-markdown",
      "display": "mdast-util-from-markdown",
      "asOf": "2026-11-19"
    },
    "F173": {
      "label": "Monthly downloads, mdast-util-from-markdown",
      "display": "353.9M",
      "asOf": "2026-11-19"
    },
    "F174": {
      "label": "License, mdast-util-from-markdown",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F175": {
      "label": "Package release, mdast-util-from-markdown",
      "display": "2.1.0",
      "asOf": "2026-11-19"
    },
    "F176": {
      "label": "Package release date, mdast-util-from-markdown",
      "display": "Oct 2026",
      "asOf": "2026-11-19"
    },
    "F177": {
      "label": "Install, mdast-util-from-markdown",
      "display": "npm install mdast-util-from-markdown@2.1.0",
      "asOf": "2026-11-19"
    },
    "F178": {
      "label": "Quickstart, mdast-util-from-markdown",
      "display": "import { fromMarkdown } from 'mdast-util-from-markdown';\n\nconst tree = fromMarkdown('# Hello');\nconsole.log(JSON.stringify(tree, null, 2));\n",
      "asOf": "2026-11-19"
    },
    "F179": {
      "label": "Official description, mdast-util-from-markdown",
      "display": "mdast utility to parse markdown",
      "asOf": "2026-11-19"
    },
    "F180": {
      "label": "Quickstart source file, mdast-util-from-markdown",
      "display": "readme.md",
      "asOf": "2026-11-19"
    },
    "F181": {
      "label": "Repository stars, mdast-util-from-markdown",
      "display": "296",
      "asOf": "2026-11-19"
    },
    "F182": {
      "label": "HTML output, mdast-util-from-markdown",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F183": {
      "label": "mdast tree output, mdast-util-from-markdown",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F184": {
      "label": "Representation, mdast-util-from-markdown",
      "display": "Markdown input becomes a positional mdast syntax tree",
      "asOf": "2026-11-19"
    },
    "F185": {
      "label": "Extension boundary, mdast-util-from-markdown",
      "display": "Syntax extensions and mdast construction extensions are separate option arrays",
      "asOf": "2026-11-19"
    },
    "F186": {
      "label": "Project function, mdast-util-from-markdown",
      "display": "export function parseGfmWithMath(text: string): Root {\n  return recoverLocalImages(fromMarkdown(text, {\n    extensions: [gfm(gfmOptions), cjkFriendlyStrong(), mathCompatibility(), math()],\n    mdastExtensions: [gfmFromMarkdown(), mathFromMarkdown(), windowsPathDestinations()],\n  }), text)\n}\n",
      "asOf": "2026-11-19"
    },
    "F187": {
      "label": "Project source file, mdast-util-from-markdown",
      "display": "packages/client/ui-primitives/src/markdown/parse.ts",
      "asOf": "2026-11-19"
    },
    "F188": {
      "label": "Project full_name, mdast-util-from-markdown",
      "display": "deepseek-ai/deepseek-harness",
      "asOf": "2026-11-19"
    },
    "F189": {
      "label": "Project stargazers_count, mdast-util-from-markdown",
      "display": "211.1K",
      "asOf": "2026-11-19"
    },
    "F190": {
      "label": "Library name, remark-parse",
      "display": "remark-parse",
      "asOf": "2026-11-19"
    },
    "F191": {
      "label": "Monthly downloads, remark-parse",
      "display": "315.7M",
      "asOf": "2026-11-19"
    },
    "F192": {
      "label": "License, remark-parse",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F193": {
      "label": "Package release, remark-parse",
      "display": "11.0.0",
      "asOf": "2026-11-19"
    },
    "F194": {
      "label": "Package release date, remark-parse",
      "display": "Sep 2023",
      "asOf": "2026-11-19"
    },
    "F195": {
      "label": "Install, remark-parse",
      "display": "npm install remark-parse@11.0.0 unified@11.0.5",
      "asOf": "2026-11-19"
    },
    "F196": {
      "label": "Quickstart, remark-parse",
      "display": "import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\n\nconst tree = unified().use(remarkParse).parse('# Hello');\nconsole.log(JSON.stringify(tree, null, 2));\n",
      "asOf": "2026-11-19"
    },
    "F197": {
      "label": "Official description, remark-parse",
      "display": "remark plugin to add support for parsing markdown input",
      "asOf": "2026-11-19"
    },
    "F198": {
      "label": "Quickstart source file, remark-parse",
      "display": "readme.md; lib/index.js",
      "asOf": "2026-11-19"
    },
    "F199": {
      "label": "Repository stars, remark-parse",
      "display": "9.0K",
      "asOf": "2026-11-19"
    },
    "F200": {
      "label": "HTML output, remark-parse",
      "display": "Via plugin",
      "asOf": "2026-11-19"
    },
    "F201": {
      "label": "mdast tree output, remark-parse",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F202": {
      "label": "Representation, remark-parse",
      "display": "Unified parser plugin produces mdast and registers micromark/mdast extension data",
      "asOf": "2026-11-19"
    },
    "F203": {
      "label": "Factory distinction, remark-parse",
      "display": "remark-parse installs parsing; remark separately bundles this parser plus remark-stringify into a processor",
      "asOf": "2026-11-19"
    },
    "F204": {
      "label": "Project function, remark-parse",
      "display": "export async function normalizeMdxToMarkdown(source) {\n  if (typeof source !== 'string' || !source.length) return '';\n  const file = await unified()\n    .use(remarkParse)\n    .use(remarkMdx)\n    .use(remarkNormalizeMdx)\n    .use(remarkStringify, {\n      bullet: '-',\n      fences: true,\n      listItemIndent: 'one',\n      rule: '-',\n      emphasis: '_',\n      strong: '*',\n    })\n    .process(stripHtmlComments(source));\n  return String(file);\n}\n",
      "asOf": "2026-11-19"
    },
    "F205": {
      "label": "Project source file, remark-parse",
      "display": "website/plugins/docusaurus-plugin-llms-txt/src/mdx-normalize.mjs",
      "asOf": "2026-11-19"
    },
    "F206": {
      "label": "Project full_name, remark-parse",
      "display": "cloudposse/atmos",
      "asOf": "2026-11-19"
    },
    "F207": {
      "label": "Project stargazers_count, remark-parse",
      "display": "1.4K",
      "asOf": "2026-11-19"
    },
    "F208": {
      "label": "Library name, markdown-it",
      "display": "markdown-it",
      "asOf": "2026-11-19"
    },
    "F209": {
      "label": "Monthly downloads, markdown-it",
      "display": "153.0M",
      "asOf": "2026-11-19"
    },
    "F210": {
      "label": "License, markdown-it",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F211": {
      "label": "Package release, markdown-it",
      "display": "15.0.3",
      "asOf": "2026-11-19"
    },
    "F212": {
      "label": "Package release date, markdown-it",
      "display": "Oct 2026",
      "asOf": "2026-11-19"
    },
    "F213": {
      "label": "Install, markdown-it",
      "display": "npm install markdown-it@15.0.3",
      "asOf": "2026-11-19"
    },
    "F214": {
      "label": "Quickstart, markdown-it",
      "display": "import MarkdownIt from 'markdown-it';\n\nconst parser = new MarkdownIt();\nconsole.log(parser.render('# Hello'));\n",
      "asOf": "2026-11-19"
    },
    "F215": {
      "label": "Repository stars, markdown-it",
      "display": "22.0K",
      "asOf": "2026-11-19"
    },
    "F216": {
      "label": "HTML output, markdown-it",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F217": {
      "label": "mdast tree output, markdown-it",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F218": {
      "label": "Representation, markdown-it",
      "display": "Plugin-extensible Markdown parser with token-array parse and HTML render operations",
      "asOf": "2026-11-19"
    },
    "F219": {
      "label": "Generation boundary, markdown-it",
      "display": "Selected15.0.3 has a documented v15 migration guide; old consumer versions do not alone prove incompatibility",
      "asOf": "2026-11-19"
    },
    "F220": {
      "label": "Project function, markdown-it",
      "display": "const selectRenderer = function (options: RenderOptions): MarkdownIt {\n  const version = semver.coerce(options.ghostVersion || '4.0');\n\n  if (version && semver.satisfies(version, '<4.x')) {\n    if (renderers['<4.x']) {\n      return renderers['<4.x'];\n    }\n    const markdownIt = new MarkdownIt({ html: true, breaks: true, linkify: true })\n      .use(markdownItFootnote)\n      .use(markdownItLazyHeaders)\n      .use(markdownItMark)\n      .use(markdownItImageLazyLoading)\n      .use(namedHeaders(options))\n      .use(markdownItSub)\n      .use(markdownItSup);\n    markdownIt.linkify.set({ fuzzyLink: false });\n    renderers['<4.x'] = markdownIt;\n    return markdownIt;\n  } else {\n    if (renderers.latest) {\n      return renderers.latest;\n    }\n    const markdownIt = new MarkdownIt({ html: true, breaks: true, linkify: true })\n      .use(markdownItFootnote)\n      .use(markdownItLazyHeaders)\n      .use(markdownItMark)\n      .use(markdownItImageLazyLoading)\n      .use(namedHeaders(options))\n      .use(markdownItSub)\n      .use(markdownItSup);\n    markdownIt.linkify.set({ fuzzyLink: false });\n    renderers.latest = markdownIt;\n    return markdownIt;\n  }\n};\n",
      "asOf": "2026-11-19"
    },
    "F221": {
      "label": "Project source file, markdown-it",
      "display": "koenig/kg-markdown-html-renderer/src/markdown-html-renderer.ts",
      "asOf": "2026-11-19"
    },
    "F222": {
      "label": "Project full_name, markdown-it",
      "display": "TryGhost/Ghost",
      "asOf": "2026-11-19"
    },
    "F223": {
      "label": "Project stargazers_count, markdown-it",
      "display": "55.8K",
      "asOf": "2026-11-19"
    },
    "F224": {
      "label": "Library name, remark",
      "display": "remark",
      "asOf": "2026-11-19"
    },
    "F225": {
      "label": "Monthly downloads, remark",
      "display": "37.7M",
      "asOf": "2026-11-19"
    },
    "F226": {
      "label": "License, remark",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F227": {
      "label": "Package release, remark",
      "display": "15.0.1",
      "asOf": "2026-11-19"
    },
    "F228": {
      "label": "Package release date, remark",
      "display": "Sep 2023",
      "asOf": "2026-11-19"
    },
    "F229": {
      "label": "Install, remark",
      "display": "npm install remark@15.0.1",
      "asOf": "2026-11-19"
    },
    "F230": {
      "label": "Quickstart, remark",
      "display": "import { remark } from 'remark';\n\nconst file = await remark().process('# Hello');\nconsole.log(String(file));\n",
      "asOf": "2026-11-19"
    },
    "F231": {
      "label": "Repository stars, remark",
      "display": "9.0K",
      "asOf": "2026-11-19"
    },
    "F232": {
      "label": "HTML output, remark",
      "display": "Via plugin",
      "asOf": "2026-11-19"
    },
    "F233": {
      "label": "mdast tree output, remark",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F234": {
      "label": "Representation, remark",
      "display": "Processor factory already configured with remark-parse and remark-stringify",
      "asOf": "2026-11-19"
    },
    "F235": {
      "label": "Output boundary, remark",
      "display": "Default output is Markdown; HTML requires a compiler plugin",
      "asOf": "2026-11-19"
    },
    "F236": {
      "label": "Project function, remark",
      "display": "export default async function markdownToHtml(markdown: string) {\n  const result = await remark().use(html).process(markdown);\n  return result.toString();\n}\n",
      "asOf": "2026-11-19"
    },
    "F237": {
      "label": "Project source file, remark",
      "display": "examples/blog-starter/src/lib/markdownToHtml.ts",
      "asOf": "2026-11-19"
    },
    "F238": {
      "label": "Project full_name, remark",
      "display": "vercel/next.js",
      "asOf": "2026-11-19"
    },
    "F239": {
      "label": "Project stargazers_count, remark",
      "display": "143.6K",
      "asOf": "2026-11-19"
    },
    "F240": {
      "label": "Library name, @lezer/markdown",
      "display": "@lezer/markdown",
      "asOf": "2026-11-19"
    },
    "F241": {
      "label": "Monthly downloads, @lezer/markdown",
      "display": "32.0M",
      "asOf": "2026-11-19"
    },
    "F242": {
      "label": "License, @lezer/markdown",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F243": {
      "label": "Package release, @lezer/markdown",
      "display": "1.8.1",
      "asOf": "2026-11-19"
    },
    "F244": {
      "label": "Package release date, @lezer/markdown",
      "display": "Oct 2026",
      "asOf": "2026-11-19"
    },
    "F245": {
      "label": "Install, @lezer/markdown",
      "display": "npm install @lezer/markdown@1.8.1",
      "asOf": "2026-11-19"
    },
    "F246": {
      "label": "Quickstart, @lezer/markdown",
      "display": "import { parser } from '@lezer/markdown';\n\nconst tree = parser.parse('# Hello');\nconsole.log(tree.toString());\n",
      "asOf": "2026-11-19"
    },
    "F247": {
      "label": "Official description, @lezer/markdown",
      "display": "Incremental Markdown parser that consumes and emits Lezer trees",
      "asOf": "2026-11-19"
    },
    "F248": {
      "label": "Quickstart source file, @lezer/markdown",
      "display": "README.md; dist/index.d.ts",
      "asOf": "2026-11-19"
    },
    "F249": {
      "label": "Repository stars, @lezer/markdown",
      "display": "147",
      "asOf": "2026-11-19"
    },
    "F250": {
      "label": "HTML output, @lezer/markdown",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F251": {
      "label": "mdast tree output, @lezer/markdown",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F252": {
      "label": "Representation, @lezer/markdown",
      "display": "Incremental compact Lezer trees and parser configuration for editor support",
      "asOf": "2026-11-19"
    },
    "F253": {
      "label": "Dialect boundary, @lezer/markdown",
      "display": "Publisher explicitly says link references are not validated like a fully conforming CommonMark renderer",
      "asOf": "2026-11-19"
    },
    "F254": {
      "label": "Project function, @lezer/markdown",
      "display": "parse(ctx: BlockContext, line: Line) {\n        if (!isFirstLine(ctx)) {\n          return false\n        }\n        const regex = /^\\s*---\\s*$/\n        const start = ctx.lineStart\n        if (regex.test(line.text)) {\n          const contentStart = ctx.lineStart + line.text.length\n          const startMarker = ctx.elt('YAMLMarker', ctx.lineStart, contentStart)\n          while (ctx.nextLine()) {\n            if (regex.test(line.text)) {\n              const content = ctx.elt('YAMLContent', contentStart, ctx.lineStart)\n              const end = ctx.lineStart + line.text.length\n              const endMarker = ctx.elt('YAMLMarker', ctx.lineStart, end)\n              ctx.addElement(\n                ctx.elt('YAMLFrontMatter', start, end, [startMarker, content, endMarker]),\n              )\n              ctx.nextLine()\n              return true\n            }\n          }\n          return true\n        } else {\n          return false\n        }\n      }\n",
      "asOf": "2026-11-19"
    },
    "F255": {
      "label": "Project source file, @lezer/markdown",
      "display": "app/ydoc-shared/src/ast/ensoMarkdown.ts",
      "asOf": "2026-11-19"
    },
    "F256": {
      "label": "Project full_name, @lezer/markdown",
      "display": "enso-org/enso",
      "asOf": "2026-11-19"
    },
    "F257": {
      "label": "Project stargazers_count, @lezer/markdown",
      "display": "7.4K",
      "asOf": "2026-11-19"
    },
    "F258": {
      "label": "Library name, markdown-to-jsx",
      "display": "markdown-to-jsx",
      "asOf": "2026-11-19"
    },
    "F259": {
      "label": "Monthly downloads, markdown-to-jsx",
      "display": "23.6M",
      "asOf": "2026-11-19"
    },
    "F260": {
      "label": "License, markdown-to-jsx",
      "display": "MIT",
      "asOf": "2026-11-19"
    },
    "F261": {
      "label": "Package release, markdown-to-jsx",
      "display": "9.10.6",
      "asOf": "2026-11-19"
    },
    "F262": {
      "label": "Package release date, markdown-to-jsx",
      "display": "Nov 2026",
      "asOf": "2026-11-19"
    },
    "F263": {
      "label": "Install, markdown-to-jsx",
      "display": "npm install markdown-to-jsx@9.10.6",
      "asOf": "2026-11-19"
    },
    "F264": {
      "label": "Quickstart, markdown-to-jsx",
      "display": "import { compiler } from 'markdown-to-jsx/html';\n\nconsole.log(compiler('# Hello'));\n",
      "asOf": "2026-11-19"
    },
    "F265": {
      "label": "Official description, markdown-to-jsx",
      "display": "A very fast and versatile markdown toolchain. AST, React, React Native, SolidJS, Vue, Markdown, and HTML output available with full customization.",
      "asOf": "2026-11-19"
    },
    "F266": {
      "label": "Quickstart source file, markdown-to-jsx",
      "display": "README.md",
      "asOf": "2026-11-19"
    },
    "F267": {
      "label": "Repository stars, markdown-to-jsx",
      "display": "2.4K",
      "asOf": "2026-11-19"
    },
    "F268": {
      "label": "HTML output, markdown-to-jsx",
      "display": "Yes",
      "asOf": "2026-11-19"
    },
    "F269": {
      "label": "mdast tree output, markdown-to-jsx",
      "display": "No",
      "asOf": "2026-11-19"
    },
    "F270": {
      "label": "Representation, markdown-to-jsx",
      "display": "Current9.x has separate AST, HTML, Markdown, React, and React Native entries",
      "asOf": "2026-11-19"
    },
    "F271": {
      "label": "Migration boundary, markdown-to-jsx",
      "display": "Current v9 parser replaces legacy compiler ast:true; framework import migrations are separate",
      "asOf": "2026-11-19"
    },
    "F272": {
      "label": "Project function, markdown-to-jsx",
      "display": "export function planMarkdownHeadingAnchors(\n  markdown: string,\n  pageIds: Iterable<string> = PAGE_IDS,\n): MarkdownHeadingPlan {\n  const headings: Array<{ source: string; legacy: string }> = [];\n\n  const ast = parser(markdown, {\n    slugify: (source, legacySlugify) => {\n      const legacy = legacySlugify(source);\n\n      headings.push({ source, legacy });\n\n      return legacy;\n    },\n  });\n\n  const { footnoteIds, ids: reservedIds } = collectReservedMarkdownIds(\n    ast,\n    pageIds,\n  );\n  const ids = createUniqueHeadingIds(\n    headings.map(({ source }) => source),\n    reservedIds,\n  );\n  const renderIdsBySource = new Map<string, string[]>();\n\n  for (const [index, { source }] of headings.entries()) {\n    renderIdsBySource.set(source, [\n      ...(renderIdsBySource.get(source) ?? []),\n      ids[index],\n    ]);\n  }\n\n  // markdown-to-jsx calls the same slugifier for footnote footer ids after it\n  // renders the headings. Appending the original footnote id keeps that call\n  // paired with the href the parser already emitted, including when a heading\n  // and footnote use the exact same source text.\n  for (const [source, id] of footnoteIds) {\n    renderIdsBySource.set(source, [\n      ...(renderIdsBySource.get(source) ?? []),\n      id,\n    ]);\n  }\n\n  const callsBySource = new Map<string, number>();\n  const slugify = (source: string): string => {\n    const sourceIds = renderIdsBySource.get(source);\n    if (!sourceIds?.length) {\n      // markdown-to-jsx also uses this callback for generated structures such\n      // as footnote footer ids. Their links already target the library's own\n      // slug scheme, so changing an unplanned value here would break the pair.\n      return legacySlugify(source);\n    }\n\n    const call = callsBySource.get(source) ?? 0;\n    callsBySource.set(source, call + 1);\n\n    // React Strict Mode may evaluate markdown-to-jsx's memoized compiler more\n    // than once. Cycling over each source's complete id sequence makes every\n    // full evaluation deterministic instead of exhausting a one-shot cursor.\n    return sourceIds[call % sourceIds.length];\n  };\n\n  const canonicalIds = new Set(ids);\n  const aliases = new Map<string, string>();\n  const claimedIds = new Set([...reservedIds, ...canonicalIds]);\n\n  for (const [index, { legacy }] of headings.entries()) {\n    if (!legacy || claimedIds.has(legacy)) {\n      continue;\n    }\n\n    aliases.set(ids[index], legacy);\n    claimedIds.add(legacy);\n  }\n\n  const footnotesByLabel = new Map(\n    [...footnoteIds].map(([source, id]) => [source.toLowerCase(), id]),\n  );\n  const footnoteId = (label: string) =>\n    footnotesByLabel.get(label.toLowerCase());\n\n  return { aliases, footnoteId, slugify };\n}\n",
      "asOf": "2026-11-19"
    },
    "F273": {
      "label": "Project source file, markdown-to-jsx",
      "display": "src/lib/anchors.ts",
      "asOf": "2026-11-19"
    },
    "F274": {
      "label": "Project full_name, markdown-to-jsx",
      "display": "mldangelo/personal-site",
      "asOf": "2026-11-19"
    },
    "F275": {
      "label": "Project stargazers_count, markdown-to-jsx",
      "display": "1.7K",
      "asOf": "2026-11-19"
    },
    "F276": {
      "label": "Developer need, micromark",
      "display": "Plain HTML with few extensions",
      "asOf": "2026-11-17"
    },
    "F277": {
      "label": "Pick reason, micromark",
      "display": "compiles tokens straight to HTML",
      "asOf": "2026-11-17"
    },
    "F278": {
      "label": "Developer need, mdast-util",
      "display": "A syntax tree without plugins",
      "asOf": "2026-11-17"
    },
    "F279": {
      "label": "Pick reason, mdast-util",
      "display": "returns an mdast tree from one function call",
      "asOf": "2026-11-17"
    },
    "F280": {
      "label": "Developer need, remark-parse",
      "display": "Parsing inside a unified pipeline",
      "asOf": "2026-11-17"
    },
    "F281": {
      "label": "Pick reason, remark-parse",
      "display": "adds Markdown parsing to unified",
      "asOf": "2026-11-17"
    },
    "F282": {
      "label": "Developer need, lezer",
      "display": "Markdown in a code editor",
      "asOf": "2026-11-17"
    },
    "F283": {
      "label": "Pick reason, lezer",
      "display": "reparses only the changed part of a document",
      "asOf": "2026-11-17"
    },
    "F284": {
      "label": "Developer need, markdown-to-jsx",
      "display": "Markdown as React components",
      "asOf": "2026-11-17"
    },
    "F285": {
      "label": "Pick reason, markdown-to-jsx",
      "display": "renders JSX without dangerouslySetInnerHTML",
      "asOf": "2026-11-17"
    },
    "F286": {
      "label": "Strength lead, micromark",
      "display": "Tracks every byte",
      "asOf": "2026-11-17"
    },
    "F287": {
      "label": "Strength body, micromark",
      "display": "Each token records its exact position in the source text.",
      "asOf": "2026-11-17"
    },
    "F288": {
      "label": "Strength lead, micromark",
      "display": "Escapes HTML by default",
      "asOf": "2026-11-17"
    },
    "F289": {
      "label": "Strength body, micromark",
      "display": "Raw HTML in the input stays escaped unless allowDangerousHtml is set.",
      "asOf": "2026-11-17"
    },
    "F290": {
      "label": "Strength lead, mdast-util",
      "display": "Tree from one call",
      "asOf": "2026-11-17"
    },
    "F291": {
      "label": "Strength body, mdast-util",
      "display": "fromMarkdown returns an mdast tree with no processor or plugin setup.",
      "asOf": "2026-11-17"
    },
    "F292": {
      "label": "Limit lead, mdast-util",
      "display": "Parsing only",
      "asOf": "2026-11-17"
    },
    "F293": {
      "label": "Limit body, mdast-util",
      "display": "Turning the tree into HTML or Markdown takes other utilities, or remark.",
      "asOf": "2026-11-17"
    },
    "F294": {
      "label": "Strength lead, remark-parse",
      "display": "Plugs into unified",
      "asOf": "2026-11-17"
    },
    "F295": {
      "label": "Strength body, remark-parse",
      "display": "unified().use(remarkParse) adds Markdown input to any unified processor.",
      "asOf": "2026-11-17"
    },
    "F296": {
      "label": "Limit lead, remark-parse",
      "display": "Input side only",
      "asOf": "2026-11-17"
    },
    "F297": {
      "label": "Limit body, remark-parse",
      "display": "Writing Markdown back out needs remark-stringify, or the remark package, which includes both.",
      "asOf": "2026-11-17"
    },
    "F298": {
      "label": "Strength lead, lezer",
      "display": "Incremental parsing",
      "asOf": "2026-11-17"
    },
    "F299": {
      "label": "Strength body, lezer",
      "display": "Reuses parts of the previous tree, so edits reparse only what changed.",
      "asOf": "2026-11-17"
    },
    "F300": {
      "label": "Limit lead, lezer",
      "display": "No HTML output",
      "asOf": "2026-11-17"
    },
    "F301": {
      "label": "Limit body, lezer",
      "display": "Returns a syntax tree only, for editors such as CodeMirror.",
      "asOf": "2026-11-17"
    },
    "F302": {
      "label": "Limit lead, lezer",
      "display": "Unchecked link references",
      "asOf": "2026-11-17"
    },
    "F303": {
      "label": "Limit body, lezer",
      "display": "Parses [a][b] as a link even when no [b] reference exists.",
      "asOf": "2026-11-17"
    },
    "F304": {
      "label": "Strength lead, markdown-to-jsx",
      "display": "HTML becomes JSX",
      "asOf": "2026-11-17"
    },
    "F305": {
      "label": "Strength body, markdown-to-jsx",
      "display": "Inline HTML renders as React elements, with no dangerouslySetInnerHTML.",
      "asOf": "2026-11-17"
    },
    "F306": {
      "label": "Strength lead, markdown-to-jsx",
      "display": "Overridable tags",
      "asOf": "2026-11-17"
    },
    "F307": {
      "label": "Strength body, markdown-to-jsx",
      "display": "The overrides option swaps any tag for a custom component or adds props.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-19",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript Markdown parser libraries Marked markdown-it remark Showdown code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
