import{d as c,P as d,s as p,i as n,o as t,b as a,u}from"./Dih1Xbo1.js";const f=["id"],h=["href"],k=c({__name:"ProseH2",props:{id:{}},setup(r){const e=r,{headings:o}=d().public.mdc,i=p(()=>e.id&&(typeof o?.anchorLinks=="boolean"&&o?.anchorLinks===!0||typeof o?.anchorLinks=="object"&&o?.anchorLinks?.h2));return(s,l)=>(t(),n("h2",{id:e.id},[e.id&&u(i)?(t(),n("a",{key:0,href:`#${e.id}`},[a(s.$slots,"default")],8,h)):a(s.$slots,"default",{key:1})],8,f))}});export{k as default};
