[{"data":1,"prerenderedAt":368},["ShallowReactive",2],{"navigation_docs":3,"-guide-plugins":73,"-guide-plugins-surround":363},[4,26,57],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":25},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,15,20],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Usage","\u002Fgetting-started\u002Fusage","1.getting-started\u002F3.usage","i-lucide-play",false,{"title":27,"icon":28,"path":29,"stem":30,"children":31,"page":25},"Guide","i-lucide-book-marked","\u002Fguide","2.guide",[32,37,42,47,52],{"title":33,"path":34,"stem":35,"icon":36},"Options and frontmatter","\u002Fguide\u002Foptions-frontmatter","2.guide\u002F1.options-frontmatter","i-lucide-sliders-horizontal",{"title":38,"path":39,"stem":40,"icon":41},"Locale files","\u002Fguide\u002Flocale-files","2.guide\u002F2.locale-files","i-lucide-languages",{"title":43,"path":44,"stem":45,"icon":46},"Plugins","\u002Fguide\u002Fplugins","2.guide\u002F3.plugins","i-lucide-puzzle",{"title":48,"path":49,"stem":50,"icon":51},"Custom components","\u002Fguide\u002Fcustom-components","2.guide\u002F4.custom-components","i-lucide-component",{"title":53,"path":54,"stem":55,"icon":56},"Browser preview","\u002Fguide\u002Fbrowser-preview","2.guide\u002F5.browser-preview","i-lucide-monitor",{"title":58,"icon":59,"path":60,"stem":61,"children":62,"page":25},"Reference","i-lucide-book-open","\u002Freference","3.reference",[63,68],{"title":64,"path":65,"stem":66,"icon":67},"Syntax matrix","\u002Freference\u002Fsyntax-matrix","3.reference\u002F1.syntax-matrix","i-lucide-table",{"title":69,"path":70,"stem":71,"icon":72},"Host options","\u002Freference\u002Fhost-options","3.reference\u002F2.host-options","i-lucide-settings",{"id":74,"title":43,"body":75,"description":356,"extension":357,"links":358,"meta":359,"navigation":360,"path":44,"seo":361,"stem":45,"__hash__":362},"docs\u002F2.guide\u002F3.plugins.md",{"type":76,"value":77,"toc":351},"minimark",[78,87,274,278,293,297,306,310,339,347],[79,80,81,82,86],"p",{},"Pass Comark parser plugins through ",[83,84,85],"code",{},"PdfRendererOptions.plugins",". Register matching component factories when the plugin emits component nodes.",[88,89,94],"pre",{"className":90,"code":91,"language":92,"meta":93,"style":93},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { renderPdf } from 'comark-pdf'\nimport math, { Math } from 'comark-pdf\u002Fplugins\u002Fmath'\nimport mermaid, { Mermaid } from 'comark-pdf\u002Fplugins\u002Fmermaid'\n\nconst bytes = await renderPdf(markdown, {\n  plugins: [math(), mermaid()],\n  components: { Math, Mermaid },\n})\n","ts","",[83,95,96,129,156,182,189,216,245,265],{"__ignoreMap":93},[97,98,101,105,109,113,116,119,122,126],"span",{"class":99,"line":100},"line",1,[97,102,104],{"class":103},"s7zQu","import",[97,106,108],{"class":107},"sMK4o"," {",[97,110,112],{"class":111},"sTEyZ"," renderPdf",[97,114,115],{"class":107}," }",[97,117,118],{"class":103}," from",[97,120,121],{"class":107}," '",[97,123,125],{"class":124},"sfazB","comark-pdf",[97,127,128],{"class":107},"'\n",[97,130,132,134,137,140,142,145,147,149,151,154],{"class":99,"line":131},2,[97,133,104],{"class":103},[97,135,136],{"class":111}," math",[97,138,139],{"class":107},",",[97,141,108],{"class":107},[97,143,144],{"class":111}," Math",[97,146,115],{"class":107},[97,148,118],{"class":103},[97,150,121],{"class":107},[97,152,153],{"class":124},"comark-pdf\u002Fplugins\u002Fmath",[97,155,128],{"class":107},[97,157,159,161,164,166,168,171,173,175,177,180],{"class":99,"line":158},3,[97,160,104],{"class":103},[97,162,163],{"class":111}," mermaid",[97,165,139],{"class":107},[97,167,108],{"class":107},[97,169,170],{"class":111}," Mermaid",[97,172,115],{"class":107},[97,174,118],{"class":103},[97,176,121],{"class":107},[97,178,179],{"class":124},"comark-pdf\u002Fplugins\u002Fmermaid",[97,181,128],{"class":107},[97,183,185],{"class":99,"line":184},4,[97,186,188],{"emptyLinePlaceholder":187},true,"\n",[97,190,192,196,199,202,205,208,211,213],{"class":99,"line":191},5,[97,193,195],{"class":194},"spNyl","const",[97,197,198],{"class":111}," bytes ",[97,200,201],{"class":107},"=",[97,203,204],{"class":103}," await",[97,206,112],{"class":207},"s2Zo4",[97,209,210],{"class":111},"(markdown",[97,212,139],{"class":107},[97,214,215],{"class":107}," {\n",[97,217,219,223,226,229,232,235,237,239,242],{"class":99,"line":218},6,[97,220,222],{"class":221},"swJcz","  plugins",[97,224,225],{"class":107},":",[97,227,228],{"class":111}," [",[97,230,231],{"class":207},"math",[97,233,234],{"class":111},"()",[97,236,139],{"class":107},[97,238,163],{"class":207},[97,240,241],{"class":111},"()]",[97,243,244],{"class":107},",\n",[97,246,248,251,253,255,257,259,262],{"class":99,"line":247},7,[97,249,250],{"class":221},"  components",[97,252,225],{"class":107},[97,254,108],{"class":107},[97,256,144],{"class":111},[97,258,139],{"class":107},[97,260,261],{"class":111}," Mermaid ",[97,263,264],{"class":107},"},\n",[97,266,268,271],{"class":99,"line":267},8,[97,269,270],{"class":107},"}",[97,272,273],{"class":111},")\n",[275,276,277],"h2",{"id":231},"Math",[79,279,280,281,284,285,288,289,292],{},"With ",[83,282,283],{},"mathjax-full"," installed, ",[83,286,287],{},"$…$"," and ",[83,290,291],{},"$$…$$"," render as SVG. Without it, the source appears in Courier.",[275,294,296],{"id":295},"mermaid","Mermaid",[79,298,280,299,301,302,305],{},[83,300,295],{}," (and optionally DOM \u002F ",[83,303,304],{},"happy-dom","), fenced mermaid blocks render as SVG. Otherwise the source appears in a monospace box.",[275,307,309],{"id":308},"binding","Binding",[79,311,312,313,316,317,316,320,316,323,326,327,330,331,334,335,338],{},"The binding plugin powers ",[83,314,315],{},"{{ }}",", ",[83,318,319],{},":attr",[83,321,322],{},"::if",[83,324,325],{},"::for",", and ",[83,328,329],{},"::include",". Pass ",[83,332,333],{},"data"," (and ",[83,336,337],{},"each"," for batches) in renderer options.",[79,340,341,342,346],{},"See the ",[343,344,345],"a",{"href":65},"syntax matrix"," for how each feature maps to jasy.",[348,349,350],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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 .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 .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":93,"searchDepth":131,"depth":131,"links":352},[353,354,355],{"id":231,"depth":131,"text":277},{"id":295,"depth":131,"text":296},{"id":308,"depth":131,"text":309},"Register math and Mermaid parser plugins and map their component tags for PDF output.","md",null,{},{"icon":46},{"title":43,"description":356},"gnNnF1D_uNRQiqUaOF8QiJ8dYIguPNn5wuE3qqfcOHE",[364,366],{"title":38,"path":39,"stem":40,"description":365,"icon":41,"children":-1},"One markdown file per locale, locale-specific bindings, and what to avoid.",{"title":48,"path":49,"stem":50,"description":367,"icon":51,"children":-1},"Override Comark component tags with jasy element factories for barcodes, charts, or alerts.",1794911899847]