[{"data":1,"prerenderedAt":381,"buildId":382},["ShallowReactive",2],{"page:\u002Fextensions\u002Fkubb-labs\u002Fparser-md\u002Foptions":3},{"id":4,"frontmatter":5,"title":6,"heading":6,"body":7,"path":380,"source":4},"extensions\u002Fkubb-labs\u002Fparser-md\u002Foptions.md",{},"Options",{"type":8,"value":9,"toc":373},"minimark",[10,18,23,30,78,338,362,365],[11,12,13,17],"p",{},[14,15,16],"code",{},"parserMd()"," takes no options. A plugin controls each Markdown file through its metadata, such as the YAML frontmatter.",[19,20,22],"h2",{"id":21},"frontmatter","Frontmatter",[11,24,25,26,29],{},"Set ",[14,27,28],{},"meta.frontmatter"," on a file a plugin creates. Kubb writes any serializable object as a YAML block at the top of the page.",[31,32,33,44],"table",{},[34,35,36],"thead",{},[37,38,39,42],"tr",{},[40,41],"th",{},[40,43],{},[45,46,47,58,68],"tbody",{},[37,48,49,53],{},[50,51,52],"td",{},"Field",[50,54,55],{},[14,56,57],{},"file.meta.frontmatter",[37,59,60,63],{},[50,61,62],{},"Type",[50,64,65],{},[14,66,67],{},"Record\u003Cstring, unknown> | null",[37,69,70,73],{},[50,71,72],{},"Required",[50,74,75],{},[14,76,77],{},"false",[79,80,81,296],"code-group",{},[82,83,88],"pre",{"language":84,"filename":85,"code":86,"class":87},"typescript","plugin.ts","import { ast } from 'kubb\u002Fkit'\n\nconst file = ast.factory.createFile({\n baseName: 'README.md',\n path: '.\u002Fsrc\u002Fgen\u002FREADME.md',\n meta: {\n frontmatter: { title: 'API Reference', layout: 'doc' },\n },\n sources: [ast.factory.createSource({ nodes: [ast.factory.createText('Endpoints generated from the OpenAPI spec.')] })],\n})","highlights",[14,89,91,118,119,118,121,118,150,118,167,118,181,118,193,118,228,118,236,118,291],{"class":90},"language-typescript",[92,93,96,100,104,108,111,114],"span",{"class":94,"style":95},"line","display: inline",[92,97,99],{"style":98},"color:#d73a49;--hls-dark:#f97583","import ",[92,101,103],{"style":102},"color:#005cc5;--hls-dark:#79b8ff","{ ",[92,105,107],{"style":106},"color:#24292e;--hls-dark:#e1e4e8","ast ",[92,109,110],{"style":102},"} ",[92,112,113],{"style":98},"from ",[92,115,117],{"style":116},"color:#032f62;--hls-dark:#9ecbff","'kubb\u002Fkit'","\n",[92,120],{"class":94,"style":95},[92,122,123,126,129,132,135,138,141,143,147],{"class":94,"style":95},[92,124,125],{"style":98},"const ",[92,127,128],{"style":106},"file ",[92,130,131],{"style":98},"= ",[92,133,134],{"style":106},"ast",[92,136,137],{"style":98},".",[92,139,140],{"style":102},"factory",[92,142,137],{"style":98},[92,144,146],{"style":145},"color:#6f42c1;--hls-dark:#b392f0","createFile",[92,148,149],{"style":102},"({",[92,151,152,155,158,161,164],{"class":94,"style":95},[92,153,154],{"style":102}," ",[92,156,157],{"style":102},"baseName",[92,159,160],{"style":98},": ",[92,162,163],{"style":116},"'README.md'",[92,165,166],{"style":98},",",[92,168,169,171,174,176,179],{"class":94,"style":95},[92,170,154],{"style":98},[92,172,173],{"style":102},"path",[92,175,160],{"style":98},[92,177,178],{"style":116},"'.\u002Fsrc\u002Fgen\u002FREADME.md'",[92,180,166],{"style":98},[92,182,183,185,188,190],{"class":94,"style":95},[92,184,154],{"style":98},[92,186,187],{"style":102},"meta",[92,189,160],{"style":98},[92,191,192],{"style":102},"{",[92,194,195,198,200,202,204,207,209,212,215,218,220,223,226],{"class":94,"style":95},[92,196,197],{"style":102}," ",[92,199,21],{"style":102},[92,201,160],{"style":98},[92,203,103],{"style":102},[92,205,206],{"style":102},"title",[92,208,160],{"style":98},[92,210,211],{"style":116},"'API Reference'",[92,213,214],{"style":98},", ",[92,216,217],{"style":102},"layout",[92,219,160],{"style":98},[92,221,222],{"style":116},"'doc' ",[92,224,225],{"style":102},"}",[92,227,166],{"style":98},[92,229,230,232,234],{"class":94,"style":95},[92,231,154],{"style":98},[92,233,225],{"style":102},[92,235,166],{"style":98},[92,237,238,240,243,245,248,250,252,254,256,259,262,265,267,269,271,273,275,277,280,283,286,289],{"class":94,"style":95},[92,239,154],{"style":98},[92,241,242],{"style":102},"sources",[92,244,160],{"style":98},[92,246,247],{"style":102},"[",[92,249,134],{"style":106},[92,251,137],{"style":98},[92,253,140],{"style":102},[92,255,137],{"style":98},[92,257,258],{"style":145},"createSource",[92,260,261],{"style":102},"({ ",[92,263,264],{"style":102},"nodes",[92,266,160],{"style":98},[92,268,247],{"style":102},[92,270,134],{"style":106},[92,272,137],{"style":98},[92,274,140],{"style":102},[92,276,137],{"style":98},[92,278,279],{"style":145},"createText",[92,281,282],{"style":102},"(",[92,284,285],{"style":116},"'Endpoints generated from the OpenAPI spec.'",[92,287,288],{"style":102},")] })]",[92,290,166],{"style":98},[92,292,293],{"class":94,"style":95},[92,294,295],{"style":102},"})",[82,297,301],{"language":298,"filename":299,"code":300,"class":87},"md","README.md","---\ntitle: API Reference\nlayout: doc\n---\n\nEndpoints generated from the OpenAPI spec.",[14,302,304,118,309,118,318,118,327,118,331,118,333],{"class":303},"language-md",[92,305,306],{"class":94,"style":95},[92,307,308],{"style":106},"---",[92,310,311,313,315],{"class":94,"style":95},[92,312,206],{"style":102},[92,314,160],{"style":98},[92,316,317],{"style":116},"API Reference",[92,319,320,322,324],{"class":94,"style":95},[92,321,217],{"style":102},[92,323,160],{"style":98},[92,325,326],{"style":116},"doc",[92,328,329],{"class":94,"style":95},[92,330,308],{"style":106},[92,332],{"class":94,"style":95},[92,334,335],{"class":94,"style":95},[92,336,337],{"style":106},"Endpoints generated from the OpenAPI spec.",[339,340,341,348],"ul",{},[342,343,344,347],"li",{},[14,345,346],{},"null"," or an empty object writes no frontmatter.",[342,349,350,351,354,355,358,359,361],{},"A file ",[14,352,353],{},"banner"," goes above the frontmatter, and a ",[14,356,357],{},"footer"," goes below the content. Tools such as Jekyll read frontmatter only at the top of the file, so leave ",[14,360,353],{}," unset on a file with frontmatter.",[19,363,364],{"id":364},"print",[11,366,367,370,371,137],{},[14,368,369],{},"parserMd().print(...parts)"," joins Markdown strings with blank lines and skips empty ones. It takes strings only, so frontmatter always comes from ",[14,372,28],{},{"title":374,"searchDepth":375,"depth":375,"links":376},"",5,[377,379],{"id":21,"depth":378,"text":22},2,{"id":364,"depth":378,"text":364},"\u002Fextensions\u002Fkubb-labs\u002Fparser-md\u002Foptions",1795727679589,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]