[{"data":1,"prerenderedAt":389},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fheading":3},{"id":4,"title":5,"body":6,"description":12,"extension":377,"keywords":378,"locale":381,"meta":382,"navigation":160,"order":383,"path":384,"section":385,"seo":386,"stem":387,"__hash__":388},"docs\u002Fplugins\u002Freference\u002Fheading.en.md","Heading",{"type":7,"value":8,"toc":365},"minimark",[9,13,24,29,35,88,96,100,116,124,131,202,209,213,216,219,223,229,233,236,242,248,252,255,260,265,269,272,310,318,322,333,337,348,361],[10,11,12],"p",{},"Adds headings. The levels option restricts parsing, commands and shortcuts as well as the levels offered by your UI.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fextension-heading"," · ",[21,22,23],"strong",{},"MIT",[25,26,28],"h2",{"id":27},"editor-compatibility","Editor compatibility",[10,30,31,32],{},"Layer：",[21,33,34],{},"Shared document capability",[36,37,38,54],"table",{},[39,40,41],"thead",{},[42,43,44,48,51],"tr",{},[45,46,47],"th",{},"Editor",[45,49,50],{},"Status",[45,52,53],{},"Assembly and boundaries",[55,56,57,74],"tbody",{},[42,58,59,63,66],{},[60,61,62],"td",{},"Classic",[60,64,65],{},"Supported",[60,67,68,73],{},[69,70,72],"a",{"href":71},"\u002Fen\u002Fplugins\u002Freference\u002Fclassic-editor-preset","classicEditorPreset"," — Use the product-neutral classicEditorPreset without duplicating installed capabilities. The Word preset replaces paragraphs, headings and container lists; do not stack generic structures onto that model.",[42,75,76,79,81],{},[60,77,78],{},"Block",[60,80,65],{},[60,82,83,87],{},[69,84,86],{"href":85},"\u002Fen\u002Fplugins\u002Freference\u002Fcreate-block-editor-preset","createBlockEditorPreset"," — The default createBlockEditor preset installs this capability. Configure the corresponding preset child; graphic editing uses the preset's workspace ports, while persistence and assets remain host-owned. Avoid duplicate extensions.",[10,89,90,91,95],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[69,92,94],{"href":93},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,97,99],{"id":98},"installation","Installation",[101,102,107],"pre",{"className":103,"code":104,"language":105,"meta":106,"style":106},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fextension-heading@alpha\n","sh","",[16,108,109],{"__ignoreMap":106},[110,111,114],"span",{"class":112,"line":113},"line",1,[110,115,104],{},[10,117,118,119,123],{},"Install in Editor extensions. The host supplies a view, container and persistence; see ",[69,120,122],{"href":121},"\u002Fen\u002Fguide\u002Fquick-start","Quick start",".",[10,125,126,127,130],{},"Included in StarterKit. Configure its ",[16,128,129],{},"heading"," child, or disable that child before installing a replacement.",[101,132,136],{"className":133,"code":134,"language":135,"meta":106,"style":106},"language-ts shiki shiki-themes github-light github-light github-dark","import { Heading } from '@quirekit\u002Fextension-heading'\n\nconst heading = Heading.configure({ levels: [1, 2, 3] })\n","ts",[16,137,138,155,162],{"__ignoreMap":106},[110,139,140,144,148,151],{"class":112,"line":113},[110,141,143],{"class":142},"sDD9d","import",[110,145,147],{"class":146},"sVPnS"," { Heading } ",[110,149,150],{"class":142},"from",[110,152,154],{"class":153},"s-HEn"," '@quirekit\u002Fextension-heading'\n",[110,156,158],{"class":112,"line":157},2,[110,159,161],{"emptyLinePlaceholder":160},true,"\n",[110,163,165,168,172,175,178,182,185,188,191,194,196,199],{"class":112,"line":164},3,[110,166,167],{"class":142},"const",[110,169,171],{"class":170},"sUNQB"," heading",[110,173,174],{"class":142}," =",[110,176,177],{"class":146}," Heading.",[110,179,181],{"class":180},"sgQzM","configure",[110,183,184],{"class":146},"({ levels: [",[110,186,187],{"class":170},"1",[110,189,190],{"class":146},", ",[110,192,193],{"class":170},"2",[110,195,190],{"class":146},[110,197,198],{"class":170},"3",[110,200,201],{"class":146},"] })\n",[10,203,204,205,123],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[69,206,208],{"href":207},"\u002Fen\u002Fsupport","support and licensing",[25,210,212],{"id":211},"integration-by-editor","Integration by editor",[10,214,215],{},"These snippets use an existing host element named element. The host owns container sizing and persistence; call instance.destroy() on teardown. Avoid duplicating preset capabilities and supply required host ports before installation.",[217,218],"plugin-integration",{"name":5},[25,220,222],{"id":221},"configuration","Configuration",[10,224,225,226,123],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[69,227,221],{"href":228},"\u002Fen\u002Fplugins\u002Fconfiguration",[230,231,232],"h3",{"id":232},"levels",[10,234,235],{},"Heading levels accepted by parsing, rendering, commands, and shortcuts.",[10,237,238,239],{},"Type：",[16,240,241],{},"(1 | 2 | 3 | 4 | 5 | 6)[]",[10,243,244,245],{},"Default：",[16,246,247],{},"[1, 2, 3, 4, 5, 6]",[230,249,251],{"id":250},"htmlattributes","HTMLAttributes",[10,253,254],{},"HTML attributes added when headings serialize to HTML.",[10,256,238,257],{},[16,258,259],{},"Record\u003Cstring, unknown>",[10,261,244,262],{},[16,263,264],{},"{}",[25,266,268],{"id":267},"commands-and-runtime","Commands and runtime",[10,270,271],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,273,274,284],{},[39,275,276],{},[42,277,278,281],{},[45,279,280],{},"Command",[45,282,283],{},"Parameter signature",[55,285,286,298],{},[42,287,288,293],{},[60,289,290],{},[16,291,292],{},"setHeading",[60,294,295],{},[16,296,297],{},"setHeading(attributes: HeadingAttributes)",[42,299,300,305],{},[60,301,302],{},[16,303,304],{},"toggleHeading",[60,306,307],{},[16,308,309],{},"toggleHeading(attributes: HeadingAttributes)",[10,311,312,313,317],{},"These are parameter signatures. See ",[69,314,316],{"href":315},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[25,319,321],{"id":320},"other-public-exports","Other public exports",[323,324,325],"ul",{},[326,327,328,19,330],"li",{},[16,329,5],{},[16,331,332],{},"@quirekit\u002Fstarter-kit",[25,334,336],{"id":335},"next-steps","Next steps",[10,338,339,340,344,345,347],{},"Return to ",[69,341,343],{"href":342},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,346,221],{"href":228}," to distinguish options, attributes and commands.",[10,349,350,351,355,356,360],{},"See ",[69,352,354],{"href":353},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[69,357,359],{"href":358},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[362,363,364],"style",{},"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 .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 .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);}html pre.shiki code .sDD9d, html code.shiki .sDD9d{--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVPnS, html code.shiki .sVPnS{--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s-HEn, html code.shiki .s-HEn{--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sUNQB, html code.shiki .sUNQB{--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sgQzM, html code.shiki .sgQzM{--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0}",{"title":106,"searchDepth":157,"depth":157,"links":366},[367,368,369,370,374,375,376],{"id":27,"depth":157,"text":28},{"id":98,"depth":157,"text":99},{"id":211,"depth":157,"text":212},{"id":221,"depth":157,"text":222,"children":371},[372,373],{"id":232,"depth":164,"text":232},{"id":250,"depth":164,"text":251},{"id":267,"depth":157,"text":268},{"id":320,"depth":157,"text":321},{"id":335,"depth":157,"text":336},"md",[5,18,379,380,232,251,292,304,5,5],"标题","nodes","en",{"navigationTitle":5,"license":23},105,"\u002Fen\u002Fplugins\u002Freference\u002Fheading","Content nodes",{"title":5,"description":12},"plugins\u002Freference\u002Fheading.en","P-Gn8xkBV1boEhuPQaqjIJqOKVNBME8LkN8aygtqxyI",1793045226397]