{
  "id": "task_libraries:markdown-editor/javascript",
  "path": "/exapedia/javascript-markdown-editor-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript Markdown editor libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript Markdown editor libraries embed a Markdown writing surface in a web page. An editor either shows the Markdown source beside a rendered preview or hides the syntax behind formatted text. These libraries let documentation tools, issue trackers, and note-taking apps store user writing as portable plain text."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript Markdown editor libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#lexical-markdown",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F133"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tiptap-markdown",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mdxeditor-editor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uiw-react-md-editor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#milkdown-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#easymde",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F214"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#toast-ui-editor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-markdown-editor-lite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ]
          ],
          "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": "#lexical-markdown",
          "label": [
            {
              "t": "text",
              "text": "Lexical + Markdown"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F134"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Visual content editing",
            "Requires framework host"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#lexical-markdown",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F133"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tiptap-markdown",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mdxeditor-editor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#uiw-react-md-editor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#milkdown-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#easymde",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F214"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#toast-ui-editor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F229"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-markdown-editor-lite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "lexical-markdown",
          "name": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/meta/lexical"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@lexical/markdown"
            },
            {
              "label": "Docs",
              "href": "https://lexical.dev/docs/packages/lexical-markdown"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F140"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://lexical.dev/docs/packages/lexical-markdown",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F133"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/payloadcms/payload",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F148"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export const MarkdownShortcutPlugin: React.FC = () => {\n  const { editorConfig } = useEditorConfigContext()\n  const [editor] = useLexicalComposerContext()\n\n  React.useEffect(() => {\n    return registerMarkdownShortcuts(editor, editorConfig.features.markdownTransformers ?? [])\n  }, [editor, editorConfig.features.markdownTransformers])\n\n  return null\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/payloadcms/payload/blob/d2b5206968c4f759d37bfb147081e30e55ef17f2/packages/richtext-lexical/src/lexical/plugins/MarkdownShortcut/index.tsx#L9-L18",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40lexical/markdown%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F133"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { createEditor } from \"lexical\";\nimport { registerRichText } from \"@lexical/rich-text\";\nimport { BOLD_STAR, ITALIC_STAR, registerMarkdownShortcuts, $convertFromMarkdownString } from \"@lexical/markdown\";\n\nconst root = document.createElement(\"div\");\nroot.contentEditable = \"true\";\ndocument.body.append(root);\nconst editor = createEditor({ namespace: \"markdown\", onError(error) { throw error; } });\neditor.setRootElement(root);\nregisterRichText(editor);\nconst transformers = [BOLD_STAR, ITALIC_STAR];\nregisterMarkdownShortcuts(editor, transformers);\neditor.update(() => $convertFromMarkdownString(\"**Hello**\", transformers));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://lexical.dev/docs/packages/lexical-markdown",
                  "label": [
                    {
                      "t": "text",
                      "text": "lexical-markdown"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F138"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tiptap-markdown",
          "name": [
            {
              "t": "fact",
              "fact": "F150"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/ueberdosis/tiptap"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@tiptap/markdown"
            },
            {
              "label": "Docs",
              "href": "https://tiptap.dev/docs/editor/markdown/getting-started/basic-usage"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F157"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://tiptap.dev/docs/editor/markdown/getting-started/basic-usage",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F150"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/simstudioai/sim",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function parseMarkdownToDoc(body: string): JSONContent {\n  const manager = markdownManager()\n  // Normalize line endings up front so {@link NON_CHUNKABLE}'s `\\n`-anchored tests see the same `\\n`\n  // the chunker and parser do — a classic `\\r`-only body would otherwise slip past the reference-def /\n  // block-HTML guard and be chunked, shattering a construct that must parse whole.\n  const normalized = body.replace(/\\r\\n?/g, '\\n')\n  if (NON_CHUNKABLE.test(normalized)) {\n    return boundEmptyParagraphs(manager.parse(normalized), MAX_EMPTY_PARAGRAPHS_PER_DOC)\n  }\n  try {\n    const content: JSONContent[] = []\n    for (const block of splitMarkdownBlocks(normalized)) {\n      // An empty block is the chunker's marker for an authored blank line, and\n      // `MarkdownManager.parse('')` yields a doc with no blocks — so materialize the node directly.\n      if (block === '') {\n        content.push({ type: 'paragraph' })\n        continue\n      }\n      // `MarkdownManager.parse` always returns a doc node with a `content` array; spread its blocks.\n      content.push(...(manager.parse(block).content ?? []))\n    }\n    return boundEmptyParagraphs({ type: 'doc', content }, MAX_EMPTY_PARAGRAPHS_PER_DOC)\n  } catch {\n    return boundEmptyParagraphs(manager.parse(normalized), MAX_EMPTY_PARAGRAPHS_PER_DOC)\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/simstudioai/sim/blob/001ee933ba72c771562b9378d33c728a81ff7898/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/markdown-parse.ts#L239-L264",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40tiptap/markdown%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F150"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Editor } from \"@tiptap/core\";\nimport StarterKit from \"@tiptap/starter-kit\";\nimport { Markdown } from \"@tiptap/markdown\";\n\nconst element = document.createElement(\"div\");\ndocument.body.append(element);\nconst editor = new Editor({\n  element, extensions: [StarterKit, Markdown],\n  content: \"# Hello **Markdown**\", contentType: \"markdown\",\n});\nconsole.log(editor.getMarkdown());\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://tiptap.dev/docs/editor/markdown/getting-started/basic-usage",
                  "label": [
                    {
                      "t": "text",
                      "text": "basic-usage"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F155"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mdxeditor-editor",
          "name": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mdx-editor/editor"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@mdxeditor/editor"
            },
            {
              "label": "Docs",
              "href": "https://mdxeditor.dev/editor/docs/getting-started"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F174"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://mdxeditor.dev/editor/docs/getting-started",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F167"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/browseros-ai/BrowserOS",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export const MarkdownEditor = ({\n  value,\n  onChange,\n  placeholder,\n  className,\n  autoFocus,\n  readOnly,\n  onKeyDown,\n  id,\n}: MarkdownEditorProps) => {\n  const editorRef = useRef<MDXEditorMethods>(null)\n  const plugins = usePlugins(readOnly)\n\n  const lastSetMarkdown = useRef(value)\n\n  useEffect(() => {\n    if (lastSetMarkdown.current === value) return\n    const current = editorRef.current?.getMarkdown() ?? ''\n    if (current !== value) {\n      lastSetMarkdown.current = value\n      editorRef.current?.setMarkdown(value)\n    }\n  }, [value])\n\n  const handlePaste = (e: React.ClipboardEvent<HTMLDivElement>) => {\n    const text = e.clipboardData.getData('text/plain')\n    if (!text) return\n\n    const markdownPattern =\n      /^#{1,6}\\s|^\\s*[-*+]\\s|^\\s*\\d+\\.\\s|\\*\\*.+\\*\\*|__.+__|\\[.+\\]\\(.+\\)|^>/m\n    if (!markdownPattern.test(text)) return\n\n    e.preventDefault()\n    e.stopPropagation()\n    editorRef.current?.insertMarkdown(text)\n  }\n\n  return (\n    <div id={id} className={cn('mdx-editor-outer', className)}>\n      {/* biome-ignore lint/a11y/noStaticElementInteractions: onKeyDown/onPasteCapture forwarding */}\n      <div\n        className=\"mdx-editor-themed\"\n        onKeyDown={onKeyDown}\n        onPasteCapture={handlePaste}\n      >\n        <MDXEditor\n          ref={editorRef}\n          markdown={value}\n          onChange={onChange}\n          placeholder={placeholder}\n          plugins={plugins}\n          autoFocus={autoFocus}\n          readOnly={readOnly}\n          contentEditableClassName=\"mdx-content-editable prose prose-sm max-w-none dark:prose-invert\"\n        />\n      </div>\n      <div className=\"mdx-copy-bar\">\n        <CopyMarkdownButton editorRef={editorRef} />\n      </div>\n    </div>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/browseros-ai/BrowserOS/blob/8144160a4e9c4da34eb8def0a2bc767f786e80b6/packages/browseros-agent/apps/app/components/ui/MarkdownEditor.tsx#L100-L161",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40mdxeditor/editor%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F167"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { MDXEditor } from \"@mdxeditor/editor\";\nimport \"@mdxeditor/editor/style.css\";\n\nexport default function App() {\n  return <MDXEditor markdown=\"Hello, world.\" />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://mdxeditor.dev/editor/docs/getting-started",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "uiw-react-md-editor",
          "name": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/uiwjs/react-md-editor"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@uiw/react-md-editor"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/uiwjs/react-md-editor",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F184"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { useState } from \"react\";\nimport MDEditor from \"@uiw/react-md-editor\";\nimport \"@uiw/react-md-editor/markdown-editor.css\";\n\nexport default function App() {\n  const [value, setValue] = useState(\"**Hello**\");\n  return <MDEditor value={value} onChange={(nextValue) => setValue(nextValue ?? \"\")} />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/uiwjs/react-md-editor",
                  "label": [
                    {
                      "t": "text",
                      "text": "react-md-editor"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40uiw/react-md-editor%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F184"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "milkdown-core",
          "name": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Milkdown/milkdown"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@milkdown/core"
            },
            {
              "label": "Docs",
              "href": "https://milkdown.dev/docs/guide/getting-started"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F204"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://milkdown.dev/docs/guide/getting-started",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F197"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/tagspaces/tagspaces",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F212"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "function LightMdEditor(props: LightMdEditorProps) {\n  const { defaultContent, placeholder } = props;\n\n  const { currentDirectory } = useDirectoryContentContext();\n  const { currentLocation } = useCurrentLocationContext();\n  const { openLink } = useOpenedEntryContext();\n  const crepeRef = useRef<Crepe | null>(null);\n\n  const { get, loading } = useEditor(\n    (root) => {\n      const crepe = createCrepeEditor(\n        root,\n        defaultContent,\n        false,\n        {\n          [Crepe.Feature.BlockEdit]: false,\n          [Crepe.Feature.Toolbar]: false,\n          [Crepe.Feature.Placeholder]: false,\n          [Crepe.Feature.Cursor]: false,\n        },\n        placeholder,\n        currentDirectory?.path,\n        openLink,\n        undefined,\n        undefined,\n        currentLocation?.uuid,\n      );\n      crepe.editor.onStatusChange((status: EditorStatus) => {\n        if (status === EditorStatus.Created) {\n          crepeRef.current = crepe;\n        }\n      });\n      return crepe;\n    },\n    // Recreate the editor only when the link resolution context changes —\n    // location id, current folder path, or readonly options. Content updates\n    // are handled imperatively in the effect below so the editor instance is\n    // stable across folder switches.\n    [currentDirectory?.path, currentLocation?.uuid],\n  );\n\n  // Imperatively push new defaultContent into the editor when it changes\n  // (e.g. user navigates to a different folder, or directoryMeta finishes\n  // loading after the editor mounted).\n  useEffect(() => {\n    const editor = get();\n    if (\n      loading ||\n      !editor ||\n      editor.status !== EditorStatus.Created ||\n      !crepeRef.current\n    ) {\n      return;\n    }\n    try {\n      const currentMd = editor.action(getMarkdown());\n      if (currentMd !== defaultContent) {\n        editor.action(replaceAll(defaultContent || '', true));\n      }\n    } catch (e) {\n      // Editor may not be fully ready; ignore.\n    }\n  }, [defaultContent, get, loading]);\n\n  return <Milkdown />;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/tagspaces/tagspaces/blob/a9232fd74c5d01e0eddb5dd54db99b03a61e5dc1/src/renderer/components/md/LigthMdEditor.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40milkdown/core%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F197"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Editor, rootCtx, defaultValueCtx } from \"@milkdown/core\";\nimport { commonmark } from \"@milkdown/preset-commonmark\";\n\nconst root = document.createElement(\"div\");\ndocument.body.append(root);\nawait Editor.make()\n  .config((ctx) => {\n    ctx.set(rootCtx, root);\n    ctx.set(defaultValueCtx, \"# Hello\");\n  })\n  .use(commonmark)\n  .create();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://milkdown.dev/docs/guide/getting-started",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "easymde",
          "name": [
            {
              "t": "fact",
              "fact": "F214"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Ionaru/easy-markdown-editor"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/easymde"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F32"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/Ionaru/easy-markdown-editor",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F214"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F33"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F34"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F35"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/go-gitea/gitea",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "value(v?: string): string {\n    if (v !== undefined) {\n      if (this.easyMDE) {\n        this.easyMDE.value(v);\n      } else {\n        this.textarea.value = v;\n        triggerEditorContentChanged(this.container);\n      }\n      this.textareaAutosize?.resizeToFit();\n    }\n    return this.easyMDE ? this.easyMDE.value() : this.textarea.value;\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/go-gitea/gitea/blob/23836eb610b6673dc4ef7001d432e48dd3af1537/web_src/js/features/comp/ComboMarkdownEditor.ts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20easymde%20for%20Markdown%20editing%2C%20content%20synchronization%2C%20article%20submission%20and%20custom%20toolbars&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": "F214"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import EasyMDE from \"easymde\";\nimport \"easymde/dist/easymde.min.css\";\n\nconst textarea = document.createElement(\"textarea\");\ndocument.body.append(textarea);\nconst editor = new EasyMDE({ element: textarea, initialValue: \"# Hello\" });\nconsole.log(editor.value());\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/Ionaru/easy-markdown-editor",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F219"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "toast-ui-editor",
          "name": [
            {
              "t": "fact",
              "fact": "F229"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/nhn/tui.editor"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@toast-ui/editor"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F58"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/nhn/tui.editor",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F229"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F59"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F60"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apiman/apiman",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "function initEditor(): Editor {\n    const options: EditorOptions = {\n      el: document.querySelector(\"#editor\"),\n      height: \"500px\",\n      initialEditType: \"markdown\",\n      previewStyle: \"tab\",\n      usageStatistics: false,\n      autofocus: false,\n      hooks: {\n        addImageBlobHook: uploadImageFromMarkdownEditor,\n      },\n      events: {\n        // blur: () => editorDirtyCheck,\n      },\n      plugins: [\n        [codeSyntaxHighlight, { highlighter: Prism }],\n        [colourSyntax, {}],\n      ],\n      linkAttributes: {\n        target: \"_blank\",\n        rel: \"noopener\",\n      },\n      initialValue: \"\"\n    };\n\n    const markdownEditor: Editor = new toast(options);\n\n    if ($scope.data.apiVersion.extendedDescription) {\n      Logger.info(\n          \"Setting extended description to: {0}\",\n          $scope.data.apiVersion.extendedDescription\n      );\n      markdownEditor.setMarkdown($scope.data.apiVersion.extendedDescription, false);\n    }\n\n    return markdownEditor;\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apiman/apiman/blob/9e8a194536f3ba5151e08b72112cc43005dc417a/manager/ui/war/plugins/api-manager/ts/api/api-devportal.ts#L213-L249",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20%40toast-ui/editor%20for%20Markdown%20editing%2C%20content%20synchronization%2C%20article%20submission%20and%20custom%20toolbars&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": "F229"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import Editor from \"@toast-ui/editor\";\nimport \"@toast-ui/editor/dist/toastui-editor.css\";\n\nconst el = document.createElement(\"div\");\ndocument.body.append(el);\nconst editor = new Editor({\n  el, height: \"400px\", initialEditType: \"markdown\",\n  previewStyle: \"vertical\", initialValue: \"# Hello\", usageStatistics: false,\n});\nconsole.log(editor.getMarkdown());\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/nhn/tui.editor",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F234"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-markdown-editor-lite",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/HarryChen0506/react-markdown-editor-lite"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-markdown-editor-lite"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F251"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/HarryChen0506/react-markdown-editor-lite",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/omnivore-app/omnivore",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function MarkdownNote(props: MarkdownNote): JSX.Element {\n  const editorRef = useRef<MdEditor | null>(null)\n  const isDark = isDarkTheme()\n\n  const saveRef = useRef(props.saveText)\n\n  useEffect(() => {\n    saveRef.current = props.saveText\n  }, [props])\n\n  const debouncedSave = useMemo<(text: string) => void>(() => {\n    const func = (text: string) => {\n      saveRef.current?.(text)\n    }\n    return throttle(func, 3000)\n  }, [])\n\n  const handleEditorChange = useCallback(\n    (\n      data: { text: string; html: string },\n      event?: ChangeEvent<HTMLTextAreaElement> | undefined\n    ) => {\n      props.setText(data.text)\n      if (event) {\n        event.preventDefault()\n      }\n\n      debouncedSave(data.text)\n    },\n    []\n  )\n\n  useEffect(() => {\n    const saveMarkdownNote = () => {\n      const md = editorRef.current?.getMdValue()\n      if (md) {\n        props.saveText(md)\n      }\n    }\n    document.addEventListener('saveMarkdownNote', saveMarkdownNote)\n    return () => {\n      document.removeEventListener('saveMarkdownNote', saveMarkdownNote)\n    }\n  }, [props, editorRef])\n\n  return (\n    <VStack\n      css={{\n        width: '100%',\n        ...RcEditorStyles(isDark, true),\n      }}\n      onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => {\n        if (event.code.toLowerCase() === 'escape') {\n          event.preventDefault()\n          event.stopPropagation()\n        }\n      }}\n    >\n      <MdEditor\n        key=\"note-editor\"\n        ref={editorRef}\n        value={props.text}\n        placeholder={props.placeHolder}\n        view={{ menu: true, md: true, html: false }}\n        canView={{\n          menu: true,\n          md: true,\n          html: true,\n          both: false,\n          fullScreen: false,\n          hideMenu: false,\n        }}\n        plugins={[\n          'tab-insert',\n          'header',\n          'font-bold',\n          'font-italic',\n          'font-underline',\n          'font-strikethrough',\n          'list-unordered',\n          'list-ordered',\n          'block-quote',\n          'link',\n          'auto-resize',\n          'mode-toggle',\n          'save',\n        ]}\n        style={{\n          width: '100%',\n          height: props.isExpanded ? '360px' : '180px',\n        }}\n        renderHTML={(text: string) => mdParser.render(text)}\n        onChange={handleEditorChange}\n      />\n    </VStack>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/omnivore-app/omnivore/blob/047503870b3b3568da4776c68bdf029cb5e58476/packages/web/components/patterns/ArticleNotes.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-markdown-editor-lite%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { useState } from \"react\";\nimport MdEditor from \"react-markdown-editor-lite\";\nimport MarkdownIt from \"markdown-it\";\nimport \"react-markdown-editor-lite/lib/index.css\";\n\nconst parser = new MarkdownIt();\nexport default function App() {\n  const [value, setValue] = useState(\"# Hello\");\n  return <MdEditor value={value} renderHTML={(text) => parser.render(text)}\n    onChange={({ text }) => setValue(text)} style={{ height: 360 }} />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/HarryChen0506/react-markdown-editor-lite",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript Markdown editor library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#easymde",
          "label": [
            {
              "t": "text",
              "text": "EasyMDE"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits pages that replace a textarea without a framework. "
        },
        {
          "t": "link",
          "href": "#mdxeditor-editor",
          "label": [
            {
              "t": "text",
              "text": "MDXEditor"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits React apps that want a ready visual Markdown editor. "
        },
        {
          "t": "link",
          "href": "#tiptap-markdown",
          "label": [
            {
              "t": "text",
              "text": "Tiptap + Markdown"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that build their own editor and need Markdown import and export."
        }
      ]
    },
    {
      "q": "What is a good React Markdown editor?",
      "a": [
        {
          "t": "link",
          "href": "#mdxeditor-editor",
          "label": [
            {
              "t": "text",
              "text": "MDXEditor"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a ready React rich-text Markdown editor with an opt-in toolbar. "
        },
        {
          "t": "link",
          "href": "#uiw-react-md-editor",
          "label": [
            {
              "t": "text",
              "text": "UIW React MD Editor"
            }
          ]
        },
        {
          "t": "text",
          "text": " edits Markdown source in a textarea with a rendered preview."
        }
      ]
    },
    {
      "q": "How does Tiptap handle Markdown?",
      "a": [
        {
          "t": "link",
          "href": "#tiptap-markdown",
          "label": [
            {
              "t": "text",
              "text": "Tiptap + Markdown"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds official Markdown parsing and serialization to the Tiptap editor. The app still configures the schema, extensions, and UI."
        }
      ]
    },
    {
      "q": "What is a WYSIWYG Markdown editor?",
      "a": [
        {
          "t": "text",
          "text": "A WYSIWYG Markdown editor shows formatted text while it writes Markdown underneath. "
        },
        {
          "t": "link",
          "href": "#milkdown-core",
          "label": [
            {
              "t": "text",
              "text": "Milkdown"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#toast-ui-editor",
          "label": [
            {
              "t": "text",
              "text": "TOAST UI Editor"
            }
          ]
        },
        {
          "t": "text",
          "text": " offer this visual mode."
        }
      ]
    },
    {
      "q": "Tiptap vs Lexical: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Both are low-level editor frameworks that leave nodes and UI to the app. "
        },
        {
          "t": "link",
          "href": "#lexical-markdown",
          "label": [
            {
              "t": "text",
              "text": "Lexical + Markdown"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds import, export, and Markdown shortcuts to Lexical. "
        },
        {
          "t": "link",
          "href": "#tiptap-markdown",
          "label": [
            {
              "t": "text",
              "text": "Tiptap + Markdown"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds Markdown content commands to Tiptap."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, @milkdown/crepe",
      "display": "Milkdown Crepe",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, @milkdown/crepe",
      "display": "2.1M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, @milkdown/crepe",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, @milkdown/crepe",
      "display": "7.23.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, @milkdown/crepe",
      "display": "v7.23.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, @milkdown/crepe",
      "display": "12.1K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Supports tables, @milkdown/crepe",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Highlights code syntax, @milkdown/crepe",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Customizes toolbars, @milkdown/crepe",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Offers WYSIWYG editing, @milkdown/crepe",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, @milkdown/crepe",
      "display": "npm install @milkdown/crepe @codemirror/language @codemirror/lang-markdown @uiw/codemirror-theme-nord",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, @milkdown/crepe",
      "display": "Provides a ready-to-use Milkdown Markdown editor with configurable interface features.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, @milkdown/crepe",
      "display": "Bundles configurable editor features",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, @milkdown/crepe",
      "display": "Enable tables, code blocks, and formatting controls through feature configuration.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, @milkdown/crepe",
      "display": "Customizes image upload handling",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, @milkdown/crepe",
      "display": "Return your stored image URL from onUpload.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, @milkdown/crepe",
      "display": "Uses blob URLs by default",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, @milkdown/crepe",
      "display": "Provide onUpload when images must be stored on your server.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, @milkdown/crepe",
      "display": "Fixed toolbar needs explicit enabling",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, @milkdown/crepe",
      "display": "Enable TopBar when a persistent toolbar is needed.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, @milkdown/crepe",
      "display": "import { CrepeBuilder } from '@milkdown/crepe/builder';\nimport { codeMirror } from '@milkdown/crepe/feature/code-mirror';\nimport { LanguageDescription } from '@codemirror/language';\nimport { markdown as markdownLanguage } from '@codemirror/lang-markdown';\n\nimport { nord } from '@uiw/codemirror-theme-nord';\n\n// only support css needed\nimport '@milkdown/crepe/theme/common/prosemirror.css'\nimport '@milkdown/crepe/theme/common/reset.css'\nimport '@milkdown/crepe/theme/common/code-mirror.css'\nimport '@milkdown/crepe/theme/nord-dark.css'\n\nconst markdown =\n  `# Milkdown Editor Crepe\n\n\\`\\`\\`markdown\n# This code block only support markdown language.\n\\`\\`\\`\n\n> This editor only enabled some part of the features of Crepe.\n`\n\nnew CrepeBuilder({\n  root: '#app',\n  defaultValue: markdown,\n})\n.addFeature(codeMirror, {\n  theme: nord,\n  languages: [\n    LanguageDescription.of({\n      name: \"Markdown\",\n      extensions: [\"md\", \"markdown\", \"mkd\"],\n      load() {\n        return Promise.resolve(markdownLanguage())\n      }\n    }),\n  ]\n})\n.create()\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Library name, easymde",
      "display": "EasyMDE",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Monthly downloads, easymde",
      "display": "1.1M",
      "asOf": "2026-11-15"
    },
    "F24": {
      "label": "License, easymde",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Package release, easymde",
      "display": "2.21.0",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Undated package release, easymde",
      "display": "v2.21.0",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Repository stars, easymde",
      "display": "3.1K",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Supports tables, easymde",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Highlights code syntax, easymde",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Customizes toolbars, easymde",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Install, easymde",
      "display": "npm install easymde",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "What it does, easymde",
      "display": "Replaces a textarea with a customizable Markdown editor.",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "strengths lead, easymde",
      "display": "Autosaves drafts locally",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "strengths, easymde",
      "display": "Enable autosave to restore unfinished document text.",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "strengths lead, easymde",
      "display": "Customizes toolbar controls",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "strengths, easymde",
      "display": "Choose built-in buttons or define custom actions.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "limitations lead, easymde",
      "display": "Code highlighting needs another library",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "limitations, easymde",
      "display": "Load highlight.js or pass an instance for rendered code highlighting.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "limitations lead, easymde",
      "display": "Autosave IDs must be unique",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "limitations, easymde",
      "display": "Give every editor instance its own autosave identifier.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "Quickstart, easymde",
      "display": "<link rel=\"stylesheet\" href=\"https://unpkg.com/easymde/dist/easymde.min.css\">\n<script src=\"https://unpkg.com/easymde/dist/easymde.min.js\"></script>\n\n<textarea id=\"my-text-area\"></textarea>\n<script>\nconst easyMDE = new EasyMDE({element: document.getElementById('my-text-area')});\n</script>\n\n<script>\neasyMDE.value('New input for **EasyMDE**');\n</script>\n\n<script>\neasyMDE.value();\n</script>\n",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "Project function, easymde",
      "display": "value(v?: string): string {\n    if (v !== undefined) {\n      if (this.easyMDE) {\n        this.easyMDE.value(v);\n      } else {\n        this.textarea.value = v;\n        triggerEditorContentChanged(this.container);\n      }\n      this.textareaAutosize?.resizeToFit();\n    }\n    return this.easyMDE ? this.easyMDE.value() : this.textarea.value;\n  }\n",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "Project function reference, easymde",
      "display": "ComboMarkdownEditor.ts · value()",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Project repository, easymde",
      "display": "go-gitea/gitea",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project stars, go-gitea/gitea",
      "display": "59.1K",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project push date, go-gitea/gitea",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F47": {
      "label": "Library name, @toast-ui/editor",
      "display": "TOAST UI Editor",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Monthly downloads, @toast-ui/editor",
      "display": "1.1M",
      "asOf": "2026-11-15"
    },
    "F49": {
      "label": "License, @toast-ui/editor",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Package release, @toast-ui/editor",
      "display": "3.2.3",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Undated package release, @toast-ui/editor",
      "display": "v3.2.3",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Repository stars, @toast-ui/editor",
      "display": "18.0K",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Supports tables, @toast-ui/editor",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Highlights code syntax, @toast-ui/editor",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Customizes toolbars, @toast-ui/editor",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Offers WYSIWYG editing, @toast-ui/editor",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Install, @toast-ui/editor",
      "display": "npm install @toast-ui/editor",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "What it does, @toast-ui/editor",
      "display": "Provides switchable Markdown and visual editing modes.",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "strengths lead, @toast-ui/editor",
      "display": "Switches between editing modes",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "strengths, @toast-ui/editor",
      "display": "Move between Markdown source and visual editing in one editor.",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths lead, @toast-ui/editor",
      "display": "Edits tables through context menus",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths, @toast-ui/editor",
      "display": "Add or remove table rows and columns without editing Markdown separators.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "limitations lead, @toast-ui/editor",
      "display": "Highlighted code needs a plugin",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "limitations, @toast-ui/editor",
      "display": "Install and register the code-syntax-highlight plugin for rendered code blocks.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "limitations lead, @toast-ui/editor",
      "display": "Hostname reporting needs configuration",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations, @toast-ui/editor",
      "display": "Set usageStatistics to false when hostname reporting must be disabled.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Quickstart, @toast-ui/editor",
      "display": "import Editor from '@toast-ui/editor';\n\nimport '@toast-ui/editor/dist/toastui-editor.css'; // Editor's Style\n\nconst editor = new Editor({\n  el: document.querySelector('#editor'),\n  height: '600px',\n  initialEditType: 'markdown',\n  previewStyle: 'vertical'\n});\n",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Project function, @toast-ui/editor",
      "display": "private initEditor() {\n    const editorElement = document.getElementById(this.id)\n    if (!editorElement) return\n    // eslint-disable-next-line new-cap\n    this.markdownEditor = new Editor({\n      ...this.editorOptions,\n      el: editorElement\n    })\n    this.markdownEditor.insertText(this.initialValue)\n  }\n",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project function reference, @toast-ui/editor",
      "display": "index.vue · initEditor()",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project repository, @toast-ui/editor",
      "display": "Armour/vue-typescript-admin-template",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project stars, Armour/vue-typescript-admin-template",
      "display": "5.7K",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project push date, Armour/vue-typescript-admin-template",
      "display": "Nov 2023",
      "asOf": "2023-11-04"
    },
    "F73": {
      "label": "Library name, vditor",
      "display": "Vditor",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Monthly downloads, vditor",
      "display": "216.7K",
      "asOf": "2026-11-15"
    },
    "F75": {
      "label": "License, vditor",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Package release, vditor",
      "display": "4.0.1",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Undated package release, vditor",
      "display": "v4.0.1",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Repository stars, vditor",
      "display": "11.4K",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Supports tables, vditor",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Highlights code syntax, vditor",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Customizes toolbars, vditor",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Offers WYSIWYG editing, vditor",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Install, vditor",
      "display": "npm install vditor",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "What it does, vditor",
      "display": "Provides browser Markdown editing with visual, instant-rendering, and split-view modes.",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths lead, vditor",
      "display": "Provides multiple editing modes",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths, vditor",
      "display": "Choose visual editing, instant rendering, or split-view Markdown editing.",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths lead, vditor",
      "display": "Highlights code and renders diagrams",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths, vditor",
      "display": "Display highlighted code blocks and supported diagram types.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations lead, vditor",
      "display": "Loads assets from a CDN",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "limitations, vditor",
      "display": "Set cdn to your asset server to control external asset loading.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations lead, vditor",
      "display": "Uploads need explicit configuration",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations, vditor",
      "display": "Set an upload URL or provide your own upload handler.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Quickstart, vditor",
      "display": "import Vditor from \"../src/index\"\nimport \"../src/assets/less/index.less\"\n\n// new VConsole()\n\nlet toolbar\nif (window.innerWidth < 768) {\n    toolbar = [\n        \"emoji\",\n        \"headings\",\n        \"bold\",\n        \"italic\",\n        \"strike\",\n        \"link\",\n        \"|\",\n        \"list\",\n        \"ordered-list\",\n        \"check\",\n        \"outdent\",\n        \"indent\",\n        \"|\",\n        \"quote\",\n        \"line\",\n        \"code\",\n        \"inline-code\",\n        \"insert-before\",\n        \"insert-after\",\n        \"|\",\n        \"upload\",\n        \"record\",\n        \"table\",\n        \"|\",\n        \"undo\",\n        \"redo\",\n        \"|\",\n        \"edit-mode\",\n        \"content-theme\",\n        \"code-theme\",\n        \"export\",\n        {\n            name: \"more\",\n            toolbar: [\n                \"fullscreen\",\n                \"both\",\n                \"preview\",\n                \"info\",\n                \"help\",\n            ],\n        }]\n}\n\nconst customWysiwygMobileToolbar = (type, element) => {\n    if (![\"block\", \"heading\", \"li\"].includes(type)) {\n        return\n    }\n    const button = document.createElement(\"button\")\n    button.type = \"button\"\n    button.className = \"vditor-icon\"\n    button.setAttribute(\"aria-label\", \"AI 重写\")\n    button.textContent = \"AI\"\n    button.addEventListener(\"click\", () => {\n        console.log(type, window.vditor.getSelection())\n    })\n    element.appendChild(button)\n}\n\nconst initVditor = (language) => {\n    window.vditor = new Vditor(\"vditor\", {\n        // _lutePath: `http://192.168.31.194:9090/lute.min.js?${new Date().getTime()}`,\n        _lutePath: \"src/js/lute/lute.min.js\",\n        cdn: \"\",\n        toolbar,\n        lang: language,\n        mode: \"wysiwyg\",\n        customWysiwygMobileToolbar,\n        height: window.innerHeight + 100,\n        outline: {\n            enable: true,\n            position: \"right\",\n        },\n        debugger: true,\n        typewriterMode: true,\n        placeholder: \"Hello, Vditor!\",\n        preview: {\n            markdown: {\n                toc: true,\n                mark: true,\n                footnotes: true,\n                autoSpace: true,\n            },\n            math: {\n                engine: \"KaTeX\",\n                inlineDigit: true,\n            },\n        },\n        toolbarConfig: {\n            pin: true,\n        },\n        counter: {\n            enable: true,\n            type: \"text\",\n        },\n        hint: {\n            emojiPath: \"https://cdn.jsdelivr.net/npm/vditor@1.8.3/dist/images/emoji\",\n            emojiTail: \"<a href=\\\"https://ld246.com/settings/function\\\" target=\\\"_blank\\\">设置常用表情</a>\",\n            emoji: {\n                \"sd\": \"💔\",\n                \"j\": \"https://cdn.jsdelivr.net/npm/vditor@1.3.1/dist/images/emoji/j.png\",\n            },\n            parse: false,\n            extend: [\n                {\n                    key: \"@\",\n                    hint: (key) => {\n                        console.log(key)\n                        if (\"vanessa\".indexOf(key.toLocaleLowerCase()) > -1) {\n                            return [\n                                {\n                                    value: \"@Vanessa\",\n                                    html: \"<img src=\\\"https://avatars0.githubusercontent.com/u/970828?s=60&v=4\\\"/> Vanessa\",\n                                }]\n                        }\n                        return []\n                    },\n                },\n                {\n                    key: \"#\",\n                    hint: (key) => {\n                        console.log(key)\n                        if (\"vditor\".indexOf(key.toLocaleLowerCase()) > -1) {\n                            return [\n                                {\n                                    value: \"#Vditor\",\n                                    html: \"<span style=\\\"color: #999;\\\">#Vditor</span> ♏ 一款浏览器端的 Markdown 编辑器，支持所见即所得（富文本）、即时渲染（类似 Typora）和分屏预览模式。\",\n                                }]\n                        }\n                        return []\n                    },\n                }],\n        },\n        tab: \"\\t\",\n        upload: {\n            accept: \"image/*,.mp3, .wav, .rar\",\n            token: \"test\",\n            url: \"/api/upload/editor\",\n            linkToImgUrl: \"/api/upload/fetch\",\n            filename(name) {\n                return name.replace(/[^(a-zA-Z0-9\\u4e00-\\u9fa5\\.)]/g, \"\").replace(/[\\?\\\\/:|<>\\*\\[\\]\\(\\)\\$%\\{\\}@~]/g, \"\").replace(\"/\\\\s/g\", \"\")\n            },\n        },\n    })\n}\ninitVditor(\"zh_CN\")\nwindow.setLang = (language) => {\n    window.vditor.destroy()\n    initVditor(language)\n}\n",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Project function, vditor",
      "display": "function (csrfToken, it) {\n    if (Validate.goValidate({\n      target: $('#addArticleTip'),\n      data: [\n        {\n          'type': 'string',\n          'max': 256,\n          'msg': Label.articleTitleErrorLabel,\n          'target': $('#articleTitle'),\n        }],\n    })) {\n      var articleType = parseInt(\n        $('input[type=\\'radio\\'][name=\\'articleType\\']:checked').val())\n\n      if (articleType !== 5) {\n        // 打赏区启用后积分不能为空\n        if ($('#articleRewardPoint').data('orval')\n          && !/^\\+?[1-9][0-9]*$/.test($('#articleRewardPoint').val())) {\n          $('#addArticleTip').addClass('error').html('<ul><li>'\n            + Label.articleRewardPointErrorLabel + '</li></ul>')\n          return false\n        }\n      }\n\n      var articleTags = ''\n      $('.tags-input .tag .text').each(function () {\n        articleTags += $(this).text() + ','\n      })\n\n      var requestJSONObject = {\n        articleTitle: $('#articleTitle').val().replace(/(^\\s*)|(\\s*$)/g, ''),\n        articleContent: this.editor.getValue(),\n        articleTags: articleTags,\n        articleCommentable: $('#articleCommentable').prop('checked'),\n        articleNotifyFollowers: $('#articleNotifyFollowers').prop('checked'),\n        articleType: articleType,\n        articleShowInList: Boolean($('#articleShowInList').prop('checked'))\n          ? 1\n          : 0,\n      }\n\n      if (articleType !== 5) {\n        requestJSONObject.articleRewardContent = this.rewardEditor.getValue()\n        requestJSONObject.articleRewardPoint = $('#articleRewardPoint').\n          val().\n          replace(/(^\\s*)|(\\s*$)/g, '')\n        requestJSONObject.articleAnonymous = $('#articleAnonymous').\n          prop('checked')\n      } else {\n        requestJSONObject.articleQnAOfferPoint = $('#articleAskPoint').\n          val().\n          replace(/(^\\s*)|(\\s*$)/g, '')\n      }\n\n      var url = Label.servePath + '/article', type = 'POST'\n\n      if (3 === parseInt(requestJSONObject.articleType)) { // 如果是“思绪”\n        requestJSONObject.articleContent = JSON.parse(\n          window.localStorage.postData).thoughtContent\n      }\n\n      if (Label.articleOId) {\n        url = url + '/' + Label.articleOId\n        type = 'PUT'\n      }\n\n      $.ajax({\n        url: url,\n        type: type,\n        headers: {'csrfToken': csrfToken},\n        cache: false,\n        data: JSON.stringify(requestJSONObject),\n        beforeSend: function () {\n          $(it).attr('disabled', 'disabled').css('opacity', '0.3')\n        },\n        error: function (jqXHR, textStatus, errorThrown) {\n          $('#addArticleTip').\n            addClass('error').\n            html('<ul><li>' + errorThrown + '</li></ul>')\n        },\n        success: function (result, textStatus) {\n          $(it).removeAttr('disabled').css('opacity', '1')\n          if (0 === result.code) {\n            window.location.href = Label.servePath + '/article/' +\n              result.articleId\n            localStorage.removeItem('postData')\n            AddArticle.editor.clearCache()\n            AddArticle.rewardEditor.clearCache()\n          } else {\n            $('#addArticleTip').\n              addClass('error').\n              html('<ul><li>' + result.msg + '</li></ul>')\n          }\n        },\n        complete: function () {\n          $(it).removeAttr('disabled').css('opacity', '1')\n        },\n      })\n    }\n  }\n",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project function reference, vditor",
      "display": "add-article.js · AddArticle.add()",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project repository, vditor",
      "display": "88250/symphony",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project stars, 88250/symphony",
      "display": "3.0K",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project push date, 88250/symphony",
      "display": "Nov 2026",
      "asOf": "2026-11-13"
    },
    "F99": {
      "label": "Developer need",
      "display": "Textarea editing with saved drafts",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose easymde",
      "display": "restoring unfinished Markdown drafts through built-in autosave",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "textarea editing with saved drafts",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Switchable Markdown and visual editing",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose @toast-ui/editor",
      "display": "moving between source and visual editing in one editor",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "switchable Markdown and visual editing",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider vditor",
      "display": "instant rendering is also a desired writing mode",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Multiple browser editing modes",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose vditor",
      "display": "choosing visual, instant-rendering, and split-view interfaces",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "multiple browser editing modes",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Configurable bundled editor features",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose @milkdown/crepe",
      "display": "enabling document features through Crepe configuration",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "configurable bundled editor features",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "When to consider easymde",
      "display": "a textarea replacement with draft autosave is enough",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Page introduction",
      "display": "JavaScript Markdown editor libraries let web developers build Markdown editing interfaces.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Which JavaScript Markdown editor should I choose?",
      "display": "EasyMDE includes draft autosave.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Which JavaScript Markdown editor should I choose?",
      "display": "TOAST UI Editor switches between Markdown and visual editing.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which JavaScript Markdown editor should I choose?",
      "display": "Vditor offers visual editing, instant rendering, and split view.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which JavaScript Markdown editor should I choose?",
      "display": "Crepe bundles configurable Milkdown editor features.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: What does WYSIWYG mean here?",
      "display": "The editor displays document formatting during visual editing.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: What does WYSIWYG mean here?",
      "display": "Vditor describes visual editing as friendly to users unfamiliar with Markdown.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Does EasyMDE save unfinished drafts?",
      "display": "Its built-in autosave can restore text.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Does EasyMDE save unfinished drafts?",
      "display": "Each autosave instance needs a unique identifier.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Does EasyMDE include rendered code highlighting by itself?",
      "display": "Enable codeSyntaxHighlighting and include or inject highlight.js.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Does TOAST UI Editor need a code-highlighting plugin?",
      "display": "The code-syntax-highlight package is a separate plugin.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Can TOAST UI hostname reporting be disabled?",
      "display": "Set usageStatistics to false to disable hostname reporting.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Which Vditor editing modes are available?",
      "display": "Vditor supports visual editing, instant rendering, and split view.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Can Vditor assets be hosted elsewhere?",
      "display": "The cdn option replaces the default external asset base.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Why are Vditor uploads inactive initially?",
      "display": "An empty upload URL does not trigger upload events; supply a URL or custom handler.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Does Crepe persist image uploads by default?",
      "display": "Without custom upload handling, images use local blob URLs.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Does Crepe persist image uploads by default?",
      "display": "onUpload returns the stored image URL.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Does Crepe initially show a fixed top toolbar?",
      "display": "The TopBar feature is disabled by default.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: What does the CrepeBuilder example enable?",
      "display": "The sample explicitly enables only selected Crepe features.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: What does the CrepeBuilder example enable?",
      "display": "Its code-block loader configures Markdown support.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "Library name, @lexical/markdown",
      "display": "@lexical/markdown",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Monthly downloads, @lexical/markdown",
      "display": "31.2M",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "License, @lexical/markdown",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Package release, @lexical/markdown",
      "display": "0.53.0",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Package release date, @lexical/markdown",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Install, @lexical/markdown",
      "display": "npm install lexical@0.53.0 @lexical/rich-text@0.53.0 @lexical/markdown@0.53.0",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Quickstart, @lexical/markdown",
      "display": "import { createEditor } from \"lexical\";\nimport { registerRichText } from \"@lexical/rich-text\";\nimport { BOLD_STAR, ITALIC_STAR, registerMarkdownShortcuts, $convertFromMarkdownString } from \"@lexical/markdown\";\n\nconst root = document.createElement(\"div\");\nroot.contentEditable = \"true\";\ndocument.body.append(root);\nconst editor = createEditor({ namespace: \"markdown\", onError(error) { throw error; } });\neditor.setRootElement(root);\nregisterRichText(editor);\nconst transformers = [BOLD_STAR, ITALIC_STAR];\nregisterMarkdownShortcuts(editor, transformers);\neditor.update(() => $convertFromMarkdownString(\"**Hello**\", transformers));\n",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Official description, @lexical/markdown",
      "display": "Adds Markdown helpers and functionality to the Lexical editor.",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Quickstart source file, @lexical/markdown",
      "display": "lexical-markdown",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Repository stars, @lexical/markdown",
      "display": "24.0K",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Visual content editing, @lexical/markdown",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Requires framework host, @lexical/markdown",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Editing/integration model, @lexical/markdown",
      "display": "Low-level Lexical editor plus import/export and active Markdown shortcuts; application configures nodes, transformers, and UI.",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project function, @lexical/markdown",
      "display": "export const MarkdownShortcutPlugin: React.FC = () => {\n  const { editorConfig } = useEditorConfigContext()\n  const [editor] = useLexicalComposerContext()\n\n  React.useEffect(() => {\n    return registerMarkdownShortcuts(editor, editorConfig.features.markdownTransformers ?? [])\n  }, [editor, editorConfig.features.markdownTransformers])\n\n  return null\n}\n",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Project source file, @lexical/markdown",
      "display": "packages/richtext-lexical/src/lexical/plugins/MarkdownShortcut/index.tsx",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Project full_name, @lexical/markdown",
      "display": "payloadcms/payload",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Project stargazers_count, @lexical/markdown",
      "display": "45.9K",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Library name, @tiptap/markdown",
      "display": "@tiptap/markdown",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Monthly downloads, @tiptap/markdown",
      "display": "25.3M",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "License, @tiptap/markdown",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Package release, @tiptap/markdown",
      "display": "3.34.0",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Package release date, @tiptap/markdown",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Install, @tiptap/markdown",
      "display": "npm install @tiptap/core@3.34.0 @tiptap/pm@3.34.0 @tiptap/starter-kit@3.34.0 @tiptap/markdown@3.34.0",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Quickstart, @tiptap/markdown",
      "display": "import { Editor } from \"@tiptap/core\";\nimport StarterKit from \"@tiptap/starter-kit\";\nimport { Markdown } from \"@tiptap/markdown\";\n\nconst element = document.createElement(\"div\");\ndocument.body.append(element);\nconst editor = new Editor({\n  element, extensions: [StarterKit, Markdown],\n  content: \"# Hello **Markdown**\", contentType: \"markdown\",\n});\nconsole.log(editor.getMarkdown());\n",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Official description, @tiptap/markdown",
      "display": "Parses and serializes Markdown for the Tiptap editor.",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Quickstart source file, @tiptap/markdown",
      "display": "basic-usage",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Repository stars, @tiptap/markdown",
      "display": "39.1K",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Visual content editing, @tiptap/markdown",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Requires framework host, @tiptap/markdown",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Editing/integration model, @tiptap/markdown",
      "display": "Tiptap editor plus official Markdown contentType commands and serialization; configure schema/extensions and UI.",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project function, @tiptap/markdown",
      "display": "export function parseMarkdownToDoc(body: string): JSONContent {\n  const manager = markdownManager()\n  // Normalize line endings up front so {@link NON_CHUNKABLE}'s `\\n`-anchored tests see the same `\\n`\n  // the chunker and parser do — a classic `\\r`-only body would otherwise slip past the reference-def /\n  // block-HTML guard and be chunked, shattering a construct that must parse whole.\n  const normalized = body.replace(/\\r\\n?/g, '\\n')\n  if (NON_CHUNKABLE.test(normalized)) {\n    return boundEmptyParagraphs(manager.parse(normalized), MAX_EMPTY_PARAGRAPHS_PER_DOC)\n  }\n  try {\n    const content: JSONContent[] = []\n    for (const block of splitMarkdownBlocks(normalized)) {\n      // An empty block is the chunker's marker for an authored blank line, and\n      // `MarkdownManager.parse('')` yields a doc with no blocks — so materialize the node directly.\n      if (block === '') {\n        content.push({ type: 'paragraph' })\n        continue\n      }\n      // `MarkdownManager.parse` always returns a doc node with a `content` array; spread its blocks.\n      content.push(...(manager.parse(block).content ?? []))\n    }\n    return boundEmptyParagraphs({ type: 'doc', content }, MAX_EMPTY_PARAGRAPHS_PER_DOC)\n  } catch {\n    return boundEmptyParagraphs(manager.parse(normalized), MAX_EMPTY_PARAGRAPHS_PER_DOC)\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project source file, @tiptap/markdown",
      "display": "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/markdown-parse.ts",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Project full_name, @tiptap/markdown",
      "display": "simstudioai/sim",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Project stargazers_count, @tiptap/markdown",
      "display": "30.2K",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Library name, @mdxeditor/editor",
      "display": "MDXEditor",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Monthly downloads, @mdxeditor/editor",
      "display": "7.7M",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "License, @mdxeditor/editor",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Package release, @mdxeditor/editor",
      "display": "4.5.0",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Package release date, @mdxeditor/editor",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Install, @mdxeditor/editor",
      "display": "npm install react@18.3.1 react-dom@18.3.1 @mdxeditor/editor@4.5.0",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Quickstart, @mdxeditor/editor",
      "display": "import { MDXEditor } from \"@mdxeditor/editor\";\nimport \"@mdxeditor/editor/style.css\";\n\nexport default function App() {\n  return <MDXEditor markdown=\"Hello, world.\" />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Official description, @mdxeditor/editor",
      "display": "Provides a React component for rich-text Markdown editing.",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Quickstart source file, @mdxeditor/editor",
      "display": "getting-started",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Repository stars, @mdxeditor/editor",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Visual content editing, @mdxeditor/editor",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Requires framework host, @mdxeditor/editor",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Editing/integration model, @mdxeditor/editor",
      "display": "Ready React rich-text Markdown editor with opt-in toolbar, source/diff, and content plugins.",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Project function, @mdxeditor/editor",
      "display": "export const MarkdownEditor = ({\n  value,\n  onChange,\n  placeholder,\n  className,\n  autoFocus,\n  readOnly,\n  onKeyDown,\n  id,\n}: MarkdownEditorProps) => {\n  const editorRef = useRef<MDXEditorMethods>(null)\n  const plugins = usePlugins(readOnly)\n\n  const lastSetMarkdown = useRef(value)\n\n  useEffect(() => {\n    if (lastSetMarkdown.current === value) return\n    const current = editorRef.current?.getMarkdown() ?? ''\n    if (current !== value) {\n      lastSetMarkdown.current = value\n      editorRef.current?.setMarkdown(value)\n    }\n  }, [value])\n\n  const handlePaste = (e: React.ClipboardEvent<HTMLDivElement>) => {\n    const text = e.clipboardData.getData('text/plain')\n    if (!text) return\n\n    const markdownPattern =\n      /^#{1,6}\\s|^\\s*[-*+]\\s|^\\s*\\d+\\.\\s|\\*\\*.+\\*\\*|__.+__|\\[.+\\]\\(.+\\)|^>/m\n    if (!markdownPattern.test(text)) return\n\n    e.preventDefault()\n    e.stopPropagation()\n    editorRef.current?.insertMarkdown(text)\n  }\n\n  return (\n    <div id={id} className={cn('mdx-editor-outer', className)}>\n      {/* biome-ignore lint/a11y/noStaticElementInteractions: onKeyDown/onPasteCapture forwarding */}\n      <div\n        className=\"mdx-editor-themed\"\n        onKeyDown={onKeyDown}\n        onPasteCapture={handlePaste}\n      >\n        <MDXEditor\n          ref={editorRef}\n          markdown={value}\n          onChange={onChange}\n          placeholder={placeholder}\n          plugins={plugins}\n          autoFocus={autoFocus}\n          readOnly={readOnly}\n          contentEditableClassName=\"mdx-content-editable prose prose-sm max-w-none dark:prose-invert\"\n        />\n      </div>\n      <div className=\"mdx-copy-bar\">\n        <CopyMarkdownButton editorRef={editorRef} />\n      </div>\n    </div>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Project source file, @mdxeditor/editor",
      "display": "packages/browseros-agent/apps/app/components/ui/MarkdownEditor.tsx",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project full_name, @mdxeditor/editor",
      "display": "browseros-ai/BrowserOS",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project stargazers_count, @mdxeditor/editor",
      "display": "14.4K",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Library name, @uiw/react-md-editor",
      "display": "@uiw/react-md-editor",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Monthly downloads, @uiw/react-md-editor",
      "display": "4.2M",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "License, @uiw/react-md-editor",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Package release, @uiw/react-md-editor",
      "display": "4.2.4",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Package release date, @uiw/react-md-editor",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Install, @uiw/react-md-editor",
      "display": "npm install react@18.3.1 react-dom@18.3.1 @uiw/react-md-editor@4.2.4",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Quickstart, @uiw/react-md-editor",
      "display": "import { useState } from \"react\";\nimport MDEditor from \"@uiw/react-md-editor\";\nimport \"@uiw/react-md-editor/markdown-editor.css\";\n\nexport default function App() {\n  const [value, setValue] = useState(\"**Hello**\");\n  return <MDEditor value={value} onChange={(nextValue) => setValue(nextValue ?? \"\")} />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Official description, @uiw/react-md-editor",
      "display": "Edits Markdown with a live preview, built with React and TypeScript.",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Quickstart source file, @uiw/react-md-editor",
      "display": "react-md-editor",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Repository stars, @uiw/react-md-editor",
      "display": "2.9K",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Visual content editing, @uiw/react-md-editor",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Requires framework host, @uiw/react-md-editor",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Editing/integration model, @uiw/react-md-editor",
      "display": "React Markdown-source textarea editor with highlighted input, toolbar, and rendered preview.",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Library name, @milkdown/core",
      "display": "Milkdown",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Monthly downloads, @milkdown/core",
      "display": "3.5M",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "License, @milkdown/core",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Package release, @milkdown/core",
      "display": "7.23.0",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Package release date, @milkdown/core",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Install, @milkdown/core",
      "display": "npm install @milkdown/core@7.23.0 @milkdown/preset-commonmark@7.23.0",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Quickstart, @milkdown/core",
      "display": "import { Editor, rootCtx, defaultValueCtx } from \"@milkdown/core\";\nimport { commonmark } from \"@milkdown/preset-commonmark\";\n\nconst root = document.createElement(\"div\");\ndocument.body.append(root);\nawait Editor.make()\n  .config((ctx) => {\n    ctx.set(rootCtx, root);\n    ctx.set(defaultValueCtx, \"# Hello\");\n  })\n  .use(commonmark)\n  .create();\n",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Official description, @milkdown/core",
      "display": "Provides a plugin-driven WYSIWYG Markdown editor framework.",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Quickstart source file, @milkdown/core",
      "display": "getting-started",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Repository stars, @milkdown/core",
      "display": "12.1K",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Visual content editing, @milkdown/core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Requires framework host, @milkdown/core",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Editing/integration model, @milkdown/core",
      "display": "Plugin-driven visual Markdown editor Core+CommonMark, with optional Crepe ready-made UI in the same family.",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project function, @milkdown/core",
      "display": "function LightMdEditor(props: LightMdEditorProps) {\n  const { defaultContent, placeholder } = props;\n\n  const { currentDirectory } = useDirectoryContentContext();\n  const { currentLocation } = useCurrentLocationContext();\n  const { openLink } = useOpenedEntryContext();\n  const crepeRef = useRef<Crepe | null>(null);\n\n  const { get, loading } = useEditor(\n    (root) => {\n      const crepe = createCrepeEditor(\n        root,\n        defaultContent,\n        false,\n        {\n          [Crepe.Feature.BlockEdit]: false,\n          [Crepe.Feature.Toolbar]: false,\n          [Crepe.Feature.Placeholder]: false,\n          [Crepe.Feature.Cursor]: false,\n        },\n        placeholder,\n        currentDirectory?.path,\n        openLink,\n        undefined,\n        undefined,\n        currentLocation?.uuid,\n      );\n      crepe.editor.onStatusChange((status: EditorStatus) => {\n        if (status === EditorStatus.Created) {\n          crepeRef.current = crepe;\n        }\n      });\n      return crepe;\n    },\n    // Recreate the editor only when the link resolution context changes —\n    // location id, current folder path, or readonly options. Content updates\n    // are handled imperatively in the effect below so the editor instance is\n    // stable across folder switches.\n    [currentDirectory?.path, currentLocation?.uuid],\n  );\n\n  // Imperatively push new defaultContent into the editor when it changes\n  // (e.g. user navigates to a different folder, or directoryMeta finishes\n  // loading after the editor mounted).\n  useEffect(() => {\n    const editor = get();\n    if (\n      loading ||\n      !editor ||\n      editor.status !== EditorStatus.Created ||\n      !crepeRef.current\n    ) {\n      return;\n    }\n    try {\n      const currentMd = editor.action(getMarkdown());\n      if (currentMd !== defaultContent) {\n        editor.action(replaceAll(defaultContent || '', true));\n      }\n    } catch (e) {\n      // Editor may not be fully ready; ignore.\n    }\n  }, [defaultContent, get, loading]);\n\n  return <Milkdown />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project source file, @milkdown/core",
      "display": "src/renderer/components/md/LigthMdEditor.tsx",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project full_name, @milkdown/core",
      "display": "tagspaces/tagspaces",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Project stargazers_count, @milkdown/core",
      "display": "5.4K",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Library name, easymde",
      "display": "EasyMDE",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Monthly downloads, easymde",
      "display": "1.2M",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "License, easymde",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Package release, easymde",
      "display": "2.21.0",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Package release date, easymde",
      "display": "May 2026",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Install, easymde",
      "display": "npm install easymde@2.21.0",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Quickstart, easymde",
      "display": "import EasyMDE from \"easymde\";\nimport \"easymde/dist/easymde.min.css\";\n\nconst textarea = document.createElement(\"textarea\");\ndocument.body.append(textarea);\nconst editor = new EasyMDE({ element: textarea, initialValue: \"# Hello\" });\nconsole.log(editor.value());\n",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Repository stars, easymde",
      "display": "3.1K",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Visual content editing, easymde",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Requires framework host, easymde",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Editing/integration model, easymde",
      "display": "Framework-free textarea replacement with Markdown source toolbar, preview, and optional autosave/spellchecking.",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project function, easymde",
      "display": "value(v?: string): string {\n    if (v !== undefined) {\n      if (this.easyMDE) {\n        this.easyMDE.value(v);\n      } else {\n        this.textarea.value = v;\n        triggerEditorContentChanged(this.container);\n      }\n      this.textareaAutosize?.resizeToFit();\n    }\n    return this.easyMDE ? this.easyMDE.value() : this.textarea.value;\n  }\n",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Project source file, easymde",
      "display": "web_src/js/features/comp/ComboMarkdownEditor.ts",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Project full_name, easymde",
      "display": "go-gitea/gitea",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Project stargazers_count, easymde",
      "display": "59.1K",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Library name, @toast-ui/editor",
      "display": "TOAST UI Editor",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Monthly downloads, @toast-ui/editor",
      "display": "1.2M",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "License, @toast-ui/editor",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Package release, @toast-ui/editor",
      "display": "3.2.3",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Package release date, @toast-ui/editor",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Install, @toast-ui/editor",
      "display": "npm install @toast-ui/editor@3.2.3",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Quickstart, @toast-ui/editor",
      "display": "import Editor from \"@toast-ui/editor\";\nimport \"@toast-ui/editor/dist/toastui-editor.css\";\n\nconst el = document.createElement(\"div\");\ndocument.body.append(el);\nconst editor = new Editor({\n  el, height: \"400px\", initialEditType: \"markdown\",\n  previewStyle: \"vertical\", initialValue: \"# Hello\", usageStatistics: false,\n});\nconsole.log(editor.getMarkdown());\n",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Repository stars, @toast-ui/editor",
      "display": "18.0K",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Visual content editing, @toast-ui/editor",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Requires framework host, @toast-ui/editor",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Editing/integration model, @toast-ui/editor",
      "display": "Framework-free Markdown/source and WYSIWYG editor with built-in toolbar and extension hooks.",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project function, @toast-ui/editor",
      "display": "function initEditor(): Editor {\n    const options: EditorOptions = {\n      el: document.querySelector(\"#editor\"),\n      height: \"500px\",\n      initialEditType: \"markdown\",\n      previewStyle: \"tab\",\n      usageStatistics: false,\n      autofocus: false,\n      hooks: {\n        addImageBlobHook: uploadImageFromMarkdownEditor,\n      },\n      events: {\n        // blur: () => editorDirtyCheck,\n      },\n      plugins: [\n        [codeSyntaxHighlight, { highlighter: Prism }],\n        [colourSyntax, {}],\n      ],\n      linkAttributes: {\n        target: \"_blank\",\n        rel: \"noopener\",\n      },\n      initialValue: \"\"\n    };\n\n    const markdownEditor: Editor = new toast(options);\n\n    if ($scope.data.apiVersion.extendedDescription) {\n      Logger.info(\n          \"Setting extended description to: {0}\",\n          $scope.data.apiVersion.extendedDescription\n      );\n      markdownEditor.setMarkdown($scope.data.apiVersion.extendedDescription, false);\n    }\n\n    return markdownEditor;\n  }\n",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project source file, @toast-ui/editor",
      "display": "manager/ui/war/plugins/api-manager/ts/api/api-devportal.ts",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project full_name, @toast-ui/editor",
      "display": "apiman/apiman",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project stargazers_count, @toast-ui/editor",
      "display": "886",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Library name, react-markdown-editor-lite",
      "display": "react-markdown-editor-lite",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Monthly downloads, react-markdown-editor-lite",
      "display": "270.7K",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "License, react-markdown-editor-lite",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release, react-markdown-editor-lite",
      "display": "1.4.2",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release date, react-markdown-editor-lite",
      "display": "Jan 2026",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Install, react-markdown-editor-lite",
      "display": "npm install react@18.3.1 react-dom@18.3.1 react-markdown-editor-lite@1.4.2 markdown-it@14.1.0",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart, react-markdown-editor-lite",
      "display": "import { useState } from \"react\";\nimport MdEditor from \"react-markdown-editor-lite\";\nimport MarkdownIt from \"markdown-it\";\nimport \"react-markdown-editor-lite/lib/index.css\";\n\nconst parser = new MarkdownIt();\nexport default function App() {\n  const [value, setValue] = useState(\"# Hello\");\n  return <MdEditor value={value} renderHTML={(text) => parser.render(text)}\n    onChange={({ text }) => setValue(text)} style={{ height: 360 }} />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Official description, react-markdown-editor-lite",
      "display": "Provides a Markdown editor component for React.",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Quickstart source file, react-markdown-editor-lite",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Repository stars, react-markdown-editor-lite",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Visual content editing, react-markdown-editor-lite",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Requires framework host, react-markdown-editor-lite",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Editing/integration model, react-markdown-editor-lite",
      "display": "React Markdown-source editor with configurable toolbar/plugins and application-provided HTML rendering.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Project function, react-markdown-editor-lite",
      "display": "export function MarkdownNote(props: MarkdownNote): JSX.Element {\n  const editorRef = useRef<MdEditor | null>(null)\n  const isDark = isDarkTheme()\n\n  const saveRef = useRef(props.saveText)\n\n  useEffect(() => {\n    saveRef.current = props.saveText\n  }, [props])\n\n  const debouncedSave = useMemo<(text: string) => void>(() => {\n    const func = (text: string) => {\n      saveRef.current?.(text)\n    }\n    return throttle(func, 3000)\n  }, [])\n\n  const handleEditorChange = useCallback(\n    (\n      data: { text: string; html: string },\n      event?: ChangeEvent<HTMLTextAreaElement> | undefined\n    ) => {\n      props.setText(data.text)\n      if (event) {\n        event.preventDefault()\n      }\n\n      debouncedSave(data.text)\n    },\n    []\n  )\n\n  useEffect(() => {\n    const saveMarkdownNote = () => {\n      const md = editorRef.current?.getMdValue()\n      if (md) {\n        props.saveText(md)\n      }\n    }\n    document.addEventListener('saveMarkdownNote', saveMarkdownNote)\n    return () => {\n      document.removeEventListener('saveMarkdownNote', saveMarkdownNote)\n    }\n  }, [props, editorRef])\n\n  return (\n    <VStack\n      css={{\n        width: '100%',\n        ...RcEditorStyles(isDark, true),\n      }}\n      onKeyDown={(event: React.KeyboardEvent<HTMLInputElement>) => {\n        if (event.code.toLowerCase() === 'escape') {\n          event.preventDefault()\n          event.stopPropagation()\n        }\n      }}\n    >\n      <MdEditor\n        key=\"note-editor\"\n        ref={editorRef}\n        value={props.text}\n        placeholder={props.placeHolder}\n        view={{ menu: true, md: true, html: false }}\n        canView={{\n          menu: true,\n          md: true,\n          html: true,\n          both: false,\n          fullScreen: false,\n          hideMenu: false,\n        }}\n        plugins={[\n          'tab-insert',\n          'header',\n          'font-bold',\n          'font-italic',\n          'font-underline',\n          'font-strikethrough',\n          'list-unordered',\n          'list-ordered',\n          'block-quote',\n          'link',\n          'auto-resize',\n          'mode-toggle',\n          'save',\n        ]}\n        style={{\n          width: '100%',\n          height: props.isExpanded ? '360px' : '180px',\n        }}\n        renderHTML={(text: string) => mdParser.render(text)}\n        onChange={handleEditorChange}\n      />\n    </VStack>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Project source file, react-markdown-editor-lite",
      "display": "packages/web/components/patterns/ArticleNotes.tsx",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project full_name, react-markdown-editor-lite",
      "display": "omnivore-app/omnivore",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Project stargazers_count, react-markdown-editor-lite",
      "display": "16.4K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript Markdown editor libraries EasyMDE TOAST UI Editor Vditor Milkdown Crepe examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
