[{"data":1,"prerenderedAt":147},["ShallowReactive",2],{"docs:\u002Fen\u002Fdocs\u002Fguides\u002Fmarkdown":3},{"id":4,"title":5,"body":6,"description":137,"extension":138,"meta":139,"navigation":142,"path":143,"seo":144,"stem":145,"__hash__":146},"docs_en\u002Fen\u002Fdocs\u002Fguides\u002Fmarkdown.md","Markdown to HTML",{"type":7,"value":8,"toc":131},"minimark",[9,18,23,26,30,33,37,40,44,58,127],[10,11,12,13,17],"p",{},"ViText converts Markdown into an editable document. You can format it visually and export HTML with ",[14,15,16],"code",{},"editor.getHTML()",". This guide covers import, supported syntax and the limits of Markdown source mode.",[19,20,22],"h2",{"id":21},"import-markdown","Import Markdown",[10,24,25],{},"Await setContent(markdown, { format: 'markdown' }) before reading the result. Initial contentType: markdown is asynchronous; await whenReady. Markdown\u002FCSS engines are lazy-loaded from codecs.js. Standard headings, paragraphs, inline marks, links, lists, quotes, fenced code and supported GFM tables are converted into the canonical document.",[19,27,29],{"id":28},"editing-mode","Editing mode",[10,31,32],{},"The Markdown source tool is available in Pro. Correct source is applied after a 250 ms pause without leaving the mode. Basic validation checks fenced blocks and embedded tag balance. Errors retain the last applied document and prevent switching modes until you fix or reset the draft.",[19,34,36],{"id":35},"conversion-limits","Conversion limits",[10,38,39],{},"Markdown represents the supported document schema, not every possible HTML\u002FCSS layout. Changing to it may lose unsupported formatting and requires explicit confirmation. Loss confirmation never disables sanitization. Reverse conversion of arbitrary HTML is not guaranteed.",[19,41,43],{"id":42},"export","Export",[10,45,46,47,52,53,57],{},"Read getHTML for your application and store JSON plus CSS if structural restoration matters. ",[48,49,51],"a",{"href":50},"\u002Fen\u002Fdocs\u002Fguides\u002Fhtml-css","Source editing",", ",[48,54,56],{"href":55},"\u002Fen\u002Fexamples\u002Fmarkdown","Markdown example",".",[59,60,65],"pre",{"className":61,"code":62,"language":63,"meta":64,"style":64},"language-ts shiki shiki-themes github-dark","await editor.setContent('# Heading\\n\\n**Text**', { format: 'markdown' });\nconst html = editor.getHTML();\n","ts","",[14,66,67,107],{"__ignoreMap":64},[68,69,72,76,80,84,87,91,95,98,101,104],"span",{"class":70,"line":71},"line",1,[68,73,75],{"class":74},"snl16","await",[68,77,79],{"class":78},"s95oV"," editor.",[68,81,83],{"class":82},"svObZ","setContent",[68,85,86],{"class":78},"(",[68,88,90],{"class":89},"sU2Wk","'# Heading",[68,92,94],{"class":93},"sDLfK","\\n\\n",[68,96,97],{"class":89},"**Text**'",[68,99,100],{"class":78},", { format: ",[68,102,103],{"class":89},"'markdown'",[68,105,106],{"class":78}," });\n",[68,108,110,113,116,119,121,124],{"class":70,"line":109},2,[68,111,112],{"class":74},"const",[68,114,115],{"class":93}," html",[68,117,118],{"class":74}," =",[68,120,79],{"class":78},[68,122,123],{"class":82},"getHTML",[68,125,126],{"class":78},"();\n",[128,129,130],"style",{},"html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}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);}",{"title":64,"searchDepth":109,"depth":109,"links":132},[133,134,135,136],{"id":21,"depth":109,"text":22},{"id":28,"depth":109,"text":29},{"id":35,"depth":109,"text":36},{"id":42,"depth":109,"text":43},"Import Markdown into ViText, edit text visually and export HTML. Supported syntax, Markdown source mode and conversion limits.","md",{"group":140,"order":141},"Document guides",20,true,"\u002Fen\u002Fdocs\u002Fguides\u002Fmarkdown",{"title":5,"description":137},"en\u002Fdocs\u002Fguides\u002Fmarkdown","djBCV0UpSeSzl0titoQlXKYs-_KPFciHD1EYi-vN1fk",1792670389515]