[{"data":1,"prerenderedAt":837},["ShallowReactive",2],{"quirekit-doc:\u002Fguide\u002Fformats":3,"quirekit-source:core\u002Fformats\u002Fserver.ts":221,"quirekit-source:core\u002Fformats\u002Fmarkdown.ts":222,"mdc--619prr-key":223,"mdc-v7cto8-key":549},{"id":4,"title":5,"body":6,"description":209,"extension":210,"keywords":211,"locale":212,"meta":213,"navigation":214,"order":215,"path":216,"section":217,"seo":218,"stem":219,"__hash__":220},"docs\u002Fguide\u002Fformats.zh-CN.md","HTML 与 Markdown 转换",{"type":7,"value":8,"toc":202},"minimark",[9,13,18,43,58,62,79,90,94,101,104,108,118,121,124,136,139,191,198],[10,11,12],"p",{},"HTML 与 Markdown 是内容的输入输出格式。转换不会安装扩展，也不会生成 Classic 的分页界面。先确定产品采用的 Schema，再为需要交换的内容提供格式规则。",[14,15,17],"h2",{"id":16},"浏览器读取当前编辑器","浏览器：读取当前编辑器",[10,19,20,21,25,26,25,29,32,33,36,37,42],{},"已挂载的 Editor 可以调用 ",[22,23,24],"code",{},"getJSON()","、",[22,27,28],{},"getHTML()",[22,30,31],{},"getMarkdown()","。HTML 使用节点和标记的 ",[22,34,35],{},"renderHTML()","；JSON 是规范正文；Markdown 使用已安装扩展的 Markdown 规则。JSON 恢复与严格校验见",[38,39,41],"a",{"href":40},"\u002Fguide\u002Fcontent","内容读取与替换","。",[10,44,45,46,49,50,53,54,57],{},"只做 HTML 转换而不创建编辑器时，使用 ",[22,47,48],{},"@quirekit\u002Fhtml"," 的 ",[22,51,52],{},"generateJSON(html, extensions)"," 和 ",[22,55,56],{},"generateHTML(json, extensions)","。浏览器入口需要 DOM，不能直接放到 Node 服务端执行。",[14,59,61],{"id":60},"服务端使用独立入口","服务端：使用独立入口",[63,64,70],"pre",{"className":65,"code":66,"filename":67,"language":68,"meta":69,"style":69},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fhtml @quirekit\u002Fcore @quirekit\u002Fstarter-kit\n","安装 HTML 工具","sh","",[22,71,72],{"__ignoreMap":69},[73,74,77],"span",{"class":75,"line":76},"line",1,[73,78,66],{},[10,80,81,82,85,86,89],{},"Node 使用 ",[22,83,84],{},"@quirekit\u002Fhtml\u002Fserver","。工具接收解析后的扩展列表，像 StarterKit 这样的组合扩展先通过 ",[22,87,88],{},"resolveExtensions()"," 展开。以下函数不挂载 View，不依赖客户端编辑器，也不在请求之间共享一个 DOM 文档：",[91,92],"docs-recipe",{"name":93},"core\u002Fformats\u002Fserver",[10,95,96,97,100],{},"客户端与服务端要安装相容的扩展及配置。比如服务端只认识段落，客户端的业务卡片就不能被正确恢复。",[22,98,99],{},"generateJSON()"," 会按 Schema 归一化 HTML，可能丢弃未识别标签、属性或样式；成功返回不意味着原始 HTML 无损保留。",[10,102,103],{},"HTML 解析与安全过滤也是两件事。转换器不是通用 sanitizer；应用按自己的内容策略过滤不可信 HTML，再决定是否允许链接、图片或外部资源。",[14,105,107],{"id":106},"markdown明确指定输入类型","Markdown：明确指定输入类型",[10,109,110,111,114,115,42],{},"字符串默认按 HTML 解析。使用 Markdown 时，创建选项或 ",[22,112,113],{},"setContent()"," 的选项必须包含 ",[22,116,117],{},"contentType: 'markdown'",[91,119],{"name":120},"core\u002Fformats\u002Fmarkdown",[10,122,123],{},"例程保留 StarterKit 支持的内容并输出归一化 Markdown，原始空格、分隔符写法和不支持的语法不保证保留。要继续编辑 JSON，恢复时仍安装相同模型；不要把再次解析 Markdown 当作无损 JSON 存储。",[10,125,126,127,130,131,135],{},"自定义 Node\u002FMark 的 HTML 规则不会自动成为 Markdown 规则。要支持自己的语法，还需声明 Markdown token 的解析和渲染合同；未实现前应明确禁止、降级或另存原文，不要声称格式已支持。输入 ",[22,128,129],{},"==文字=="," 的",[38,132,134],{"href":133},"\u002Fguide\u002Frules","输入规则","也不会自动教会 Markdown 解析器这种语法。",[14,137,138],{"id":138},"怎么选择保存格式",[140,141,142,155],"table",{},[143,144,145],"thead",{},[146,147,148,152],"tr",{},[149,150,151],"th",{},"目标",[149,153,154],{},"建议",[156,157,158,167,175,183],"tbody",{},[146,159,160,164],{},[161,162,163],"td",{},"精确恢复产品文档",[161,165,166],{},"保存版本化规范 JSON 及媒体资源",[146,168,169,172],{},[161,170,171],{},"发布网页或交换语义 HTML",[161,173,174],{},"使用 HTML 规则，测试链接、图片和业务节点",[146,176,177,180],{},[161,178,179],{},"与 Markdown 工具互通",[161,181,182],{},"定义支持语法及损失策略，测试导入与导出",[146,184,185,188],{},[161,186,187],{},"保存 Word 页面、样式和关系",[161,189,190],{},"使用 Word 模型与 DOCX 服务，查看转换诊断",[10,192,193,194,197],{},"至少用标题、混合标记、列表、链接和一个业务节点做往返测试，同时比较规范结构与重要属性。只比较 ",[22,195,196],{},"textContent"," 会漏掉结构与格式损失。",[199,200,201],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":69,"searchDepth":203,"depth":203,"links":204},2,[205,206,207,208],{"id":16,"depth":203,"text":17},{"id":60,"depth":203,"text":61},{"id":106,"depth":203,"text":107},{"id":138,"depth":203,"text":138},"选择浏览器或服务端转换入口，理解 Schema、格式规则与数据损失。","md",null,"zh-CN",{},true,3,"\u002Fguide\u002Fformats","扩展开发",{"title":5,"description":209},"guide\u002Fformats.zh-CN","1TJHUCDsxvHlz8heFrUlbwfLELhTPUbp4BKKiny_kEI","import { generateHTML, generateJSON } from \"@quirekit\u002Fhtml\u002Fserver\";\nimport { resolveExtensions } from \"@quirekit\u002Fcore\";\nimport { StarterKit } from \"@quirekit\u002Fstarter-kit\";\n\n\u002F**\n * Converts supported semantic HTML without mounting an editor or sharing a browser document.\n * @param html - Application-authorized HTML; this function is not a sanitizer.\n * @returns Normalized canonical JSON and its semantic HTML representation.\n *\u002F\nexport function normalizeArticleHTML(html: string) {\n  const extensions = resolveExtensions([StarterKit.configure({})]);\n  const document = generateJSON(html, extensions);\n  return { document, html: generateHTML(document, extensions) };\n}\n","import { Editor } from \"@quirekit\u002Fcore\";\nimport { StarterKit } from \"@quirekit\u002Fstarter-kit\";\n\n\u002F**\n * Converts supported Markdown in a headless editor, releasing its session afterwards.\n * @param markdown - Source using the installed extensions' Markdown syntax.\n * @returns Canonical JSON and normalized Markdown, not the original source spelling.\n *\u002F\nexport function normalizeArticleMarkdown(markdown: string) {\n  const editor = new Editor({ extensions: [StarterKit.configure({})], content: markdown, contentType: \"markdown\" });\n  try { return { document: editor.getJSON(), markdown: editor.getMarkdown() }; }\n  finally { editor.destroy(); }\n}\n",{"data":224,"body":225},{},{"type":226,"children":227},"root",[228,545],{"type":229,"tag":63,"props":230,"children":234},"element",{"className":231,"code":232,"language":233,"meta":69,"style":69},"language-ts shiki shiki-themes github-light github-light github-dark","import { generateHTML, generateJSON } from \"@quirekit\u002Fhtml\u002Fserver\";\nimport { resolveExtensions } from \"@quirekit\u002Fcore\";\nimport { StarterKit } from \"@quirekit\u002Fstarter-kit\";\n\n\u002F**\n * Converts supported semantic HTML without mounting an editor or sharing a browser document.\n * @param html - Application-authorized HTML; this function is not a sanitizer.\n * @returns Normalized canonical JSON and its semantic HTML representation.\n *\u002F\nexport function normalizeArticleHTML(html: string) {\n  const extensions = resolveExtensions([StarterKit.configure({})]);\n  const document = generateJSON(html, extensions);\n  return { document, html: generateHTML(document, extensions) };\n}\n\n","ts",[235],{"type":229,"tag":22,"props":236,"children":237},{"__ignoreMap":69},[238,270,295,320,329,339,348,372,390,399,446,485,512,536],{"type":229,"tag":73,"props":239,"children":240},{"class":75,"line":76},[241,248,254,259,265],{"type":229,"tag":73,"props":242,"children":244},{"style":243},"--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583",[245],{"type":246,"value":247},"text","import",{"type":229,"tag":73,"props":249,"children":251},{"style":250},"--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8",[252],{"type":246,"value":253}," { generateHTML, generateJSON } ",{"type":229,"tag":73,"props":255,"children":256},{"style":243},[257],{"type":246,"value":258},"from",{"type":229,"tag":73,"props":260,"children":262},{"style":261},"--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF",[263],{"type":246,"value":264}," \"@quirekit\u002Fhtml\u002Fserver\"",{"type":229,"tag":73,"props":266,"children":267},{"style":250},[268],{"type":246,"value":269},";\n",{"type":229,"tag":73,"props":271,"children":272},{"class":75,"line":203},[273,277,282,286,291],{"type":229,"tag":73,"props":274,"children":275},{"style":243},[276],{"type":246,"value":247},{"type":229,"tag":73,"props":278,"children":279},{"style":250},[280],{"type":246,"value":281}," { resolveExtensions } ",{"type":229,"tag":73,"props":283,"children":284},{"style":243},[285],{"type":246,"value":258},{"type":229,"tag":73,"props":287,"children":288},{"style":261},[289],{"type":246,"value":290}," \"@quirekit\u002Fcore\"",{"type":229,"tag":73,"props":292,"children":293},{"style":250},[294],{"type":246,"value":269},{"type":229,"tag":73,"props":296,"children":297},{"class":75,"line":215},[298,302,307,311,316],{"type":229,"tag":73,"props":299,"children":300},{"style":243},[301],{"type":246,"value":247},{"type":229,"tag":73,"props":303,"children":304},{"style":250},[305],{"type":246,"value":306}," { StarterKit } ",{"type":229,"tag":73,"props":308,"children":309},{"style":243},[310],{"type":246,"value":258},{"type":229,"tag":73,"props":312,"children":313},{"style":261},[314],{"type":246,"value":315}," \"@quirekit\u002Fstarter-kit\"",{"type":229,"tag":73,"props":317,"children":318},{"style":250},[319],{"type":246,"value":269},{"type":229,"tag":73,"props":321,"children":323},{"class":75,"line":322},4,[324],{"type":229,"tag":73,"props":325,"children":326},{"emptyLinePlaceholder":214},[327],{"type":246,"value":328},"\n",{"type":229,"tag":73,"props":330,"children":332},{"class":75,"line":331},5,[333],{"type":229,"tag":73,"props":334,"children":336},{"style":335},"--shiki-default:#6A737D;--shiki-light:#6A737D;--shiki-dark:#6A737D",[337],{"type":246,"value":338},"\u002F**\n",{"type":229,"tag":73,"props":340,"children":342},{"class":75,"line":341},6,[343],{"type":229,"tag":73,"props":344,"children":345},{"style":335},[346],{"type":246,"value":347}," * Converts supported semantic HTML without mounting an editor or sharing a browser document.\n",{"type":229,"tag":73,"props":349,"children":351},{"class":75,"line":350},7,[352,357,362,367],{"type":229,"tag":73,"props":353,"children":354},{"style":335},[355],{"type":246,"value":356}," * ",{"type":229,"tag":73,"props":358,"children":359},{"style":243},[360],{"type":246,"value":361},"@param",{"type":229,"tag":73,"props":363,"children":364},{"style":250},[365],{"type":246,"value":366}," html",{"type":229,"tag":73,"props":368,"children":369},{"style":335},[370],{"type":246,"value":371}," - Application-authorized HTML; this function is not a sanitizer.\n",{"type":229,"tag":73,"props":373,"children":375},{"class":75,"line":374},8,[376,380,385],{"type":229,"tag":73,"props":377,"children":378},{"style":335},[379],{"type":246,"value":356},{"type":229,"tag":73,"props":381,"children":382},{"style":243},[383],{"type":246,"value":384},"@returns",{"type":229,"tag":73,"props":386,"children":387},{"style":335},[388],{"type":246,"value":389}," Normalized canonical JSON and its semantic HTML representation.\n",{"type":229,"tag":73,"props":391,"children":393},{"class":75,"line":392},9,[394],{"type":229,"tag":73,"props":395,"children":396},{"style":335},[397],{"type":246,"value":398}," *\u002F\n",{"type":229,"tag":73,"props":400,"children":402},{"class":75,"line":401},10,[403,408,413,419,424,430,435,441],{"type":229,"tag":73,"props":404,"children":405},{"style":243},[406],{"type":246,"value":407},"export",{"type":229,"tag":73,"props":409,"children":410},{"style":243},[411],{"type":246,"value":412}," function",{"type":229,"tag":73,"props":414,"children":416},{"style":415},"--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0",[417],{"type":246,"value":418}," normalizeArticleHTML",{"type":229,"tag":73,"props":420,"children":421},{"style":250},[422],{"type":246,"value":423},"(",{"type":229,"tag":73,"props":425,"children":427},{"style":426},"--shiki-default:#E36209;--shiki-light:#E36209;--shiki-dark:#FFAB70",[428],{"type":246,"value":429},"html",{"type":229,"tag":73,"props":431,"children":432},{"style":243},[433],{"type":246,"value":434},":",{"type":229,"tag":73,"props":436,"children":438},{"style":437},"--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF",[439],{"type":246,"value":440}," string",{"type":229,"tag":73,"props":442,"children":443},{"style":250},[444],{"type":246,"value":445},") {\n",{"type":229,"tag":73,"props":447,"children":449},{"class":75,"line":448},11,[450,455,460,465,470,475,480],{"type":229,"tag":73,"props":451,"children":452},{"style":243},[453],{"type":246,"value":454},"  const",{"type":229,"tag":73,"props":456,"children":457},{"style":437},[458],{"type":246,"value":459}," extensions",{"type":229,"tag":73,"props":461,"children":462},{"style":243},[463],{"type":246,"value":464}," =",{"type":229,"tag":73,"props":466,"children":467},{"style":415},[468],{"type":246,"value":469}," resolveExtensions",{"type":229,"tag":73,"props":471,"children":472},{"style":250},[473],{"type":246,"value":474},"([StarterKit.",{"type":229,"tag":73,"props":476,"children":477},{"style":415},[478],{"type":246,"value":479},"configure",{"type":229,"tag":73,"props":481,"children":482},{"style":250},[483],{"type":246,"value":484},"({})]);\n",{"type":229,"tag":73,"props":486,"children":488},{"class":75,"line":487},12,[489,493,498,502,507],{"type":229,"tag":73,"props":490,"children":491},{"style":243},[492],{"type":246,"value":454},{"type":229,"tag":73,"props":494,"children":495},{"style":437},[496],{"type":246,"value":497}," document",{"type":229,"tag":73,"props":499,"children":500},{"style":243},[501],{"type":246,"value":464},{"type":229,"tag":73,"props":503,"children":504},{"style":415},[505],{"type":246,"value":506}," generateJSON",{"type":229,"tag":73,"props":508,"children":509},{"style":250},[510],{"type":246,"value":511},"(html, extensions);\n",{"type":229,"tag":73,"props":513,"children":515},{"class":75,"line":514},13,[516,521,526,531],{"type":229,"tag":73,"props":517,"children":518},{"style":243},[519],{"type":246,"value":520},"  return",{"type":229,"tag":73,"props":522,"children":523},{"style":250},[524],{"type":246,"value":525}," { document, html: ",{"type":229,"tag":73,"props":527,"children":528},{"style":415},[529],{"type":246,"value":530},"generateHTML",{"type":229,"tag":73,"props":532,"children":533},{"style":250},[534],{"type":246,"value":535},"(document, extensions) };\n",{"type":229,"tag":73,"props":537,"children":539},{"class":75,"line":538},14,[540],{"type":229,"tag":73,"props":541,"children":542},{"style":250},[543],{"type":246,"value":544},"}\n",{"type":229,"tag":199,"props":546,"children":547},{},[548],{"type":246,"value":201},{"data":550,"body":551},{},{"type":226,"children":552},[553,833],{"type":229,"tag":63,"props":554,"children":556},{"className":231,"code":555,"language":233,"meta":69,"style":69},"import { Editor } from \"@quirekit\u002Fcore\";\nimport { StarterKit } from \"@quirekit\u002Fstarter-kit\";\n\n\u002F**\n * Converts supported Markdown in a headless editor, releasing its session afterwards.\n * @param markdown - Source using the installed extensions' Markdown syntax.\n * @returns Canonical JSON and normalized Markdown, not the original source spelling.\n *\u002F\nexport function normalizeArticleMarkdown(markdown: string) {\n  const editor = new Editor({ extensions: [StarterKit.configure({})], content: markdown, contentType: \"markdown\" });\n  try { return { document: editor.getJSON(), markdown: editor.getMarkdown() }; }\n  finally { editor.destroy(); }\n}\n\n",[557],{"type":229,"tag":22,"props":558,"children":559},{"__ignoreMap":69},[560,584,607,614,621,629,650,666,673,710,760,803,826],{"type":229,"tag":73,"props":561,"children":562},{"class":75,"line":76},[563,567,572,576,580],{"type":229,"tag":73,"props":564,"children":565},{"style":243},[566],{"type":246,"value":247},{"type":229,"tag":73,"props":568,"children":569},{"style":250},[570],{"type":246,"value":571}," { Editor } ",{"type":229,"tag":73,"props":573,"children":574},{"style":243},[575],{"type":246,"value":258},{"type":229,"tag":73,"props":577,"children":578},{"style":261},[579],{"type":246,"value":290},{"type":229,"tag":73,"props":581,"children":582},{"style":250},[583],{"type":246,"value":269},{"type":229,"tag":73,"props":585,"children":586},{"class":75,"line":203},[587,591,595,599,603],{"type":229,"tag":73,"props":588,"children":589},{"style":243},[590],{"type":246,"value":247},{"type":229,"tag":73,"props":592,"children":593},{"style":250},[594],{"type":246,"value":306},{"type":229,"tag":73,"props":596,"children":597},{"style":243},[598],{"type":246,"value":258},{"type":229,"tag":73,"props":600,"children":601},{"style":261},[602],{"type":246,"value":315},{"type":229,"tag":73,"props":604,"children":605},{"style":250},[606],{"type":246,"value":269},{"type":229,"tag":73,"props":608,"children":609},{"class":75,"line":215},[610],{"type":229,"tag":73,"props":611,"children":612},{"emptyLinePlaceholder":214},[613],{"type":246,"value":328},{"type":229,"tag":73,"props":615,"children":616},{"class":75,"line":322},[617],{"type":229,"tag":73,"props":618,"children":619},{"style":335},[620],{"type":246,"value":338},{"type":229,"tag":73,"props":622,"children":623},{"class":75,"line":331},[624],{"type":229,"tag":73,"props":625,"children":626},{"style":335},[627],{"type":246,"value":628}," * Converts supported Markdown in a headless editor, releasing its session afterwards.\n",{"type":229,"tag":73,"props":630,"children":631},{"class":75,"line":341},[632,636,640,645],{"type":229,"tag":73,"props":633,"children":634},{"style":335},[635],{"type":246,"value":356},{"type":229,"tag":73,"props":637,"children":638},{"style":243},[639],{"type":246,"value":361},{"type":229,"tag":73,"props":641,"children":642},{"style":250},[643],{"type":246,"value":644}," markdown",{"type":229,"tag":73,"props":646,"children":647},{"style":335},[648],{"type":246,"value":649}," - Source using the installed extensions' Markdown syntax.\n",{"type":229,"tag":73,"props":651,"children":652},{"class":75,"line":350},[653,657,661],{"type":229,"tag":73,"props":654,"children":655},{"style":335},[656],{"type":246,"value":356},{"type":229,"tag":73,"props":658,"children":659},{"style":243},[660],{"type":246,"value":384},{"type":229,"tag":73,"props":662,"children":663},{"style":335},[664],{"type":246,"value":665}," Canonical JSON and normalized Markdown, not the original source spelling.\n",{"type":229,"tag":73,"props":667,"children":668},{"class":75,"line":374},[669],{"type":229,"tag":73,"props":670,"children":671},{"style":335},[672],{"type":246,"value":398},{"type":229,"tag":73,"props":674,"children":675},{"class":75,"line":392},[676,680,684,689,693,698,702,706],{"type":229,"tag":73,"props":677,"children":678},{"style":243},[679],{"type":246,"value":407},{"type":229,"tag":73,"props":681,"children":682},{"style":243},[683],{"type":246,"value":412},{"type":229,"tag":73,"props":685,"children":686},{"style":415},[687],{"type":246,"value":688}," normalizeArticleMarkdown",{"type":229,"tag":73,"props":690,"children":691},{"style":250},[692],{"type":246,"value":423},{"type":229,"tag":73,"props":694,"children":695},{"style":426},[696],{"type":246,"value":697},"markdown",{"type":229,"tag":73,"props":699,"children":700},{"style":243},[701],{"type":246,"value":434},{"type":229,"tag":73,"props":703,"children":704},{"style":437},[705],{"type":246,"value":440},{"type":229,"tag":73,"props":707,"children":708},{"style":250},[709],{"type":246,"value":445},{"type":229,"tag":73,"props":711,"children":712},{"class":75,"line":401},[713,717,722,726,731,736,741,745,750,755],{"type":229,"tag":73,"props":714,"children":715},{"style":243},[716],{"type":246,"value":454},{"type":229,"tag":73,"props":718,"children":719},{"style":437},[720],{"type":246,"value":721}," editor",{"type":229,"tag":73,"props":723,"children":724},{"style":243},[725],{"type":246,"value":464},{"type":229,"tag":73,"props":727,"children":728},{"style":243},[729],{"type":246,"value":730}," new",{"type":229,"tag":73,"props":732,"children":733},{"style":415},[734],{"type":246,"value":735}," Editor",{"type":229,"tag":73,"props":737,"children":738},{"style":250},[739],{"type":246,"value":740},"({ extensions: [StarterKit.",{"type":229,"tag":73,"props":742,"children":743},{"style":415},[744],{"type":246,"value":479},{"type":229,"tag":73,"props":746,"children":747},{"style":250},[748],{"type":246,"value":749},"({})], content: markdown, contentType: ",{"type":229,"tag":73,"props":751,"children":752},{"style":261},[753],{"type":246,"value":754},"\"markdown\"",{"type":229,"tag":73,"props":756,"children":757},{"style":250},[758],{"type":246,"value":759}," });\n",{"type":229,"tag":73,"props":761,"children":762},{"class":75,"line":448},[763,768,773,778,783,788,793,798],{"type":229,"tag":73,"props":764,"children":765},{"style":243},[766],{"type":246,"value":767},"  try",{"type":229,"tag":73,"props":769,"children":770},{"style":250},[771],{"type":246,"value":772}," { ",{"type":229,"tag":73,"props":774,"children":775},{"style":243},[776],{"type":246,"value":777},"return",{"type":229,"tag":73,"props":779,"children":780},{"style":250},[781],{"type":246,"value":782}," { document: editor.",{"type":229,"tag":73,"props":784,"children":785},{"style":415},[786],{"type":246,"value":787},"getJSON",{"type":229,"tag":73,"props":789,"children":790},{"style":250},[791],{"type":246,"value":792},"(), markdown: editor.",{"type":229,"tag":73,"props":794,"children":795},{"style":415},[796],{"type":246,"value":797},"getMarkdown",{"type":229,"tag":73,"props":799,"children":800},{"style":250},[801],{"type":246,"value":802},"() }; }\n",{"type":229,"tag":73,"props":804,"children":805},{"class":75,"line":487},[806,811,816,821],{"type":229,"tag":73,"props":807,"children":808},{"style":243},[809],{"type":246,"value":810},"  finally",{"type":229,"tag":73,"props":812,"children":813},{"style":250},[814],{"type":246,"value":815}," { editor.",{"type":229,"tag":73,"props":817,"children":818},{"style":415},[819],{"type":246,"value":820},"destroy",{"type":229,"tag":73,"props":822,"children":823},{"style":250},[824],{"type":246,"value":825},"(); }\n",{"type":229,"tag":73,"props":827,"children":828},{"class":75,"line":514},[829],{"type":229,"tag":73,"props":830,"children":831},{"style":250},[832],{"type":246,"value":544},{"type":229,"tag":199,"props":834,"children":835},{},[836],{"type":246,"value":201},1793045209384]