1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5068],{30188:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>a,contentTitle:()=>c,default:()=>h,frontMatter:()=>s,metadata:()=>o,toc:()=>d});var n=t(85893),r=t(11151);const s={sidebar_position:15,description:"Determine if a content is a heading up to specific depth.",toc_max_heading_level:2},c="is-heading",o={id:"reference/utils/is-heading",title:"is-heading",description:"Determine if a content is a heading up to specific depth.",source:"@site/docs/reference/utils/is-heading.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/is-heading",permalink:"/docs/reference/utils/is-heading",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:15,frontMatter:{sidebar_position:15,description:"Determine if a content is a heading up to specific depth.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"is-kind",permalink:"/docs/reference/utils/is-kind"},next:{title:"call-or-display",permalink:"/docs/reference/utils/call-or-display"}},a={},d=[{value:"it : <TypeLink></TypeLink>",id:"it",level:3},{value:"depth : <TypeLink></TypeLink> <Default><code>9999</code></Default>",id:"depth",level:3}];function l(e){const i={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",strong:"strong",...(0,r.a)(),...e.components},{Default:t,Param:s,Parameters:c,Signature:o,SignatureName:a,SignatureParam:d,SourceLink:l,TypeLink:h}=i;return t||p("Default",!0),s||p("Param",!0),c||p("Parameters",!0),o||p("Signature",!0),a||p("SignatureName",!0),d||p("SignatureParam",!0),l||p("SourceLink",!0),h||p("TypeLink",!0),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.h1,{id:"is-heading",children:"is-heading"}),"\n",(0,n.jsx)(o,{children:(0,n.jsxs)("code",{children:[(0,n.jsx)(a,{children:"is-heading"}),"(",(0,n.jsxs)(d,{children:[(0,n.jsx)(i.a,{href:"#it",children:"it"}),", "]}),(0,n.jsx)(d,{children:(0,n.jsx)(i.a,{href:"#depth",children:"depth: 9999"})}),")",(0,n.jsx)(l,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L327"})]})}),"\n",(0,n.jsx)(i.p,{children:"Determine if a content is a heading up to specific depth."}),"\n",(0,n.jsxs)(c,{children:[(0,n.jsxs)(i.h3,{id:"it",children:["it : ",(0,n.jsx)(h,{type:"content"})]}),(0,n.jsx)(s,{children:(0,n.jsx)(i.p,{children:"The content to check."})}),(0,n.jsxs)(i.h3,{id:"depth",children:["depth : ",(0,n.jsx)(h,{type:"int"})," ",(0,n.jsx)(t,{children:(0,n.jsx)(i.code,{children:"9999"})})]}),(0,n.jsx)(s,{children:(0,n.jsxs)(i.p,{children:["Maximum heading depth to consider. Default is ",(0,n.jsx)(i.code,{children:"9999"}),"."]})})]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"Returns:"})," ",(0,n.jsx)(h,{type:"bool"})]})]})}function h(e={}){const{wrapper:i}={...(0,r.a)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}function p(e,i){throw new Error("Expected "+(i?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,i,t)=>{t.d(i,{Z:()=>o,a:()=>c});var n=t(67294);const r={},s=n.createContext(r);function c(e){const i=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function o(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),n.createElement(s.Provider,{value:i},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.