[{"data":1,"prerenderedAt":255},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-introduction":73,"-getting-started-introduction-surround":252},[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":11,"body":75,"description":245,"extension":246,"links":247,"meta":248,"navigation":249,"path":12,"seo":250,"stem":13,"__hash__":251},"docs\u002F1.getting-started\u002F1.introduction.md",{"type":76,"value":77,"toc":239},"minimark",[78,100,105,108,159,170,174,230],[79,80,81,85,86,93,94,99],"p",{},[82,83,84],"strong",{},"comark-pdf"," is the PDF renderer for ",[87,88,92],"a",{"href":89,"rel":90},"https:\u002F\u002Fcomark.dev",[91],"nofollow","Comark",". It converts Comark Markdown to print-ready PDF bytes through ",[87,95,98],{"href":96,"rel":97},"https:\u002F\u002Fjasy.dev",[91],"jasy"," — no headless browser required.",[101,102,104],"h2",{"id":103},"how-it-works","How it works",[79,106,107],{},"Three layers, one job each:",[109,110,111,124],"table",{},[112,113,114],"thead",{},[115,116,117,121],"tr",{},[118,119,120],"th",{},"Layer",[118,122,123],{},"Job",[125,126,127,138,148],"tbody",{},[115,128,129,135],{},[130,131,132],"td",{},[87,133,92],{"href":89,"rel":134},[91],[130,136,137],{},"Parse markdown to an AST.",[115,139,140,145],{},[130,141,142],{},[143,144,84],"code",{},[130,146,147],{},"Read that AST. Choose policy. Call jasy primitives.",[115,149,150,156],{},[130,151,152],{},[87,153,98],{"href":154,"rel":155},"https:\u002F\u002Fjasy.dev\u002Fdocs\u002Fpdf",[91],[130,157,158],{},"Draw and lay out PDF primitives. It does not parse Markdown, Mermaid, KaTeX, or Shiki.",[79,160,161,162,165,166,169],{},"Merge order for page config (last write wins): ",[143,163,164],{},"frontmatter.pdf"," → ",[143,167,168],{},"options.pdf",".",[101,171,173],{"id":172},"what-you-get","What you get",[175,176,177,192,208,216,221],"ul",{},[178,179,180,183,184,187,188,191],"li",{},[82,181,182],{},"One-shot or reusable renderers"," — ",[143,185,186],{},"renderPdf()"," or ",[143,189,190],{},"createPdfRenderer()"," with a parser initialized once",[178,193,194,183,197,200,201,204,205],{},[82,195,196],{},"Node helpers",[143,198,199],{},"renderPdfToBuffer"," and ",[143,202,203],{},"renderPdfToFile"," from ",[143,206,207],{},"comark-pdf\u002Fnode",[178,209,210,212,213],{},[82,211,53],{}," — mount bytes with ",[143,214,215],{},"comark-pdf\u002Fpreview",[178,217,218,220],{},[82,219,69],{}," — page size, margins, chrome, fonts, visuals, plugins, components, and binding data",[178,222,223,226,227,229],{},[82,224,225],{},"Feature matrix"," — see ",[87,228,64],{"href":65}," for what Comark syntax maps to PDF",[231,232,233,236,237,169],"note",{},[143,234,235],{},"comark"," is a peer dependency. Install it in your app alongside ",[143,238,84],{},{"title":240,"searchDepth":241,"depth":241,"links":242},"",2,[243,244],{"id":103,"depth":241,"text":104},{"id":172,"depth":241,"text":173},"What comark-pdf is, how it fits with Comark and jasy, and when to use it for print-ready PDF output.","md",null,{},{"icon":14},{"title":11,"description":245},"R4qK3xNX173wT_wxv5BFPrdzmf5GUGgnEP8W5GOPmbk",[247,253],{"title":16,"path":17,"stem":18,"description":254,"icon":19,"children":-1},"Install comark-pdf with pnpm, npm, or yarn. comark is a required peer dependency.",1794911899847]