[{"data":1,"prerenderedAt":325},["ShallowReactive",2],{"page:\u002Fextensions\u002Fkubb-labs\u002Fparser-md\u002Foptions":3},{"id":4,"frontmatter":5,"title":6,"heading":6,"body":7,"path":324,"source":4},"extensions\u002Fkubb-labs\u002Fparser-md\u002Foptions.md",{},"Options",{"type":8,"value":9,"toc":318},"minimark",[10,18,23,30,39,299],[11,12,13,17],"p",{},[14,15,16],"code",{},"parserMd()"," takes no options. You control its output through file metadata, such as the YAML frontmatter at the top of a generated page.",[19,20,22],"h2",{"id":21},"frontmatter","Frontmatter",[11,24,25,26,29],{},"Set ",[14,27,28],{},"file.meta.frontmatter"," inside a plugin. Any serializable object becomes a YAML block at the top of the generated page.",[31,32,33],"field-group",{},[34,35,38],"field",{"name":36,"type":37},"meta.frontmatter","Record\u003Cstring, unknown> | null","YAML frontmatter prepended to the generated Markdown file.",[40,41,42,257],"code-group",{},[43,44,49],"pre",{"language":45,"filename":46,"code":47,"class":48},"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,50,52,79,80,79,82,79,111,79,128,79,142,79,154,79,189,79,197,79,252],{"class":51},"language-typescript",[53,54,57,61,65,69,72,75],"span",{"class":55,"style":56},"line","display: inline",[53,58,60],{"style":59},"color:#d73a49;--hls-dark:#f97583","import ",[53,62,64],{"style":63},"color:#005cc5;--hls-dark:#79b8ff","{ ",[53,66,68],{"style":67},"color:#24292e;--hls-dark:#e1e4e8","ast ",[53,70,71],{"style":63},"} ",[53,73,74],{"style":59},"from ",[53,76,78],{"style":77},"color:#032f62;--hls-dark:#9ecbff","'kubb\u002Fkit'","\n",[53,81],{"class":55,"style":56},[53,83,84,87,90,93,96,99,102,104,108],{"class":55,"style":56},[53,85,86],{"style":59},"const ",[53,88,89],{"style":67},"file ",[53,91,92],{"style":59},"= ",[53,94,95],{"style":67},"ast",[53,97,98],{"style":59},".",[53,100,101],{"style":63},"factory",[53,103,98],{"style":59},[53,105,107],{"style":106},"color:#6f42c1;--hls-dark:#b392f0","createFile",[53,109,110],{"style":63},"({",[53,112,113,116,119,122,125],{"class":55,"style":56},[53,114,115],{"style":63},"  ",[53,117,118],{"style":63},"baseName",[53,120,121],{"style":59},": ",[53,123,124],{"style":77},"'README.md'",[53,126,127],{"style":59},",",[53,129,130,132,135,137,140],{"class":55,"style":56},[53,131,115],{"style":59},[53,133,134],{"style":63},"path",[53,136,121],{"style":59},[53,138,139],{"style":77},"'.\u002Fsrc\u002Fgen\u002FREADME.md'",[53,141,127],{"style":59},[53,143,144,146,149,151],{"class":55,"style":56},[53,145,115],{"style":59},[53,147,148],{"style":63},"meta",[53,150,121],{"style":59},[53,152,153],{"style":63},"{",[53,155,156,159,161,163,165,168,170,173,176,179,181,184,187],{"class":55,"style":56},[53,157,158],{"style":63},"    ",[53,160,21],{"style":63},[53,162,121],{"style":59},[53,164,64],{"style":63},[53,166,167],{"style":63},"title",[53,169,121],{"style":59},[53,171,172],{"style":77},"'API Reference'",[53,174,175],{"style":59},", ",[53,177,178],{"style":63},"layout",[53,180,121],{"style":59},[53,182,183],{"style":77},"'doc' ",[53,185,186],{"style":63},"}",[53,188,127],{"style":59},[53,190,191,193,195],{"class":55,"style":56},[53,192,115],{"style":59},[53,194,186],{"style":63},[53,196,127],{"style":59},[53,198,199,201,204,206,209,211,213,215,217,220,223,226,228,230,232,234,236,238,241,244,247,250],{"class":55,"style":56},[53,200,115],{"style":59},[53,202,203],{"style":63},"sources",[53,205,121],{"style":59},[53,207,208],{"style":63},"[",[53,210,95],{"style":67},[53,212,98],{"style":59},[53,214,101],{"style":63},[53,216,98],{"style":59},[53,218,219],{"style":106},"createSource",[53,221,222],{"style":63},"({ ",[53,224,225],{"style":63},"nodes",[53,227,121],{"style":59},[53,229,208],{"style":63},[53,231,95],{"style":67},[53,233,98],{"style":59},[53,235,101],{"style":63},[53,237,98],{"style":59},[53,239,240],{"style":106},"createText",[53,242,243],{"style":63},"(",[53,245,246],{"style":77},"'Endpoints generated from the OpenAPI spec.'",[53,248,249],{"style":63},")] })]",[53,251,127],{"style":59},[53,253,254],{"class":55,"style":56},[53,255,256],{"style":63},"})",[43,258,262],{"language":259,"filename":260,"code":261,"class":48},"md","README.md","---\ntitle: API Reference\nlayout: doc\n---\n\nEndpoints generated from the OpenAPI spec.",[14,263,265,79,270,79,279,79,288,79,292,79,294],{"class":264},"language-md",[53,266,267],{"class":55,"style":56},[53,268,269],{"style":67},"---",[53,271,272,274,276],{"class":55,"style":56},[53,273,167],{"style":63},[53,275,121],{"style":59},[53,277,278],{"style":77},"API Reference",[53,280,281,283,285],{"class":55,"style":56},[53,282,178],{"style":63},[53,284,121],{"style":59},[53,286,287],{"style":77},"doc",[53,289,290],{"class":55,"style":56},[53,291,269],{"style":67},[53,293],{"class":55,"style":56},[53,295,296],{"class":55,"style":56},[53,297,298],{"style":67},"Endpoints generated from the OpenAPI spec.",[300,301,302,309],"ul",{},[303,304,305,308],"li",{},[14,306,307],{},"parserMd().print"," accepts objects and Markdown strings, joined with blank lines.",[303,310,311,314,315,98],{},[14,312,313],{},"parserMd().print({ title: 'Pets', layout: 'doc' })"," returns ",[14,316,317],{},"---\\ntitle: Pets\\nlayout: doc\\n---",{"title":319,"searchDepth":320,"depth":320,"links":321},"",5,[322],{"id":21,"depth":323,"text":22},2,"\u002Fextensions\u002Fkubb-labs\u002Fparser-md\u002Foptions",1793647022207]