import{a1 as i,v as d,c as t,o as n,ae as a,m as p}from"./DPwbf7XO.js";const u=["id"],f=["href"],m={__name:"ProseH1",props:{id:{type:String,required:!1}},setup(r){const o=r,{headings:e}=i().public.mdc,c=d(()=>o.id&&(typeof e?.anchorLinks=="boolean"&&e?.anchorLinks===!0||typeof e?.anchorLinks=="object"&&e?.anchorLinks?.h1));return(s,h)=>(n(),t("h1",{id:o.id},[p(c)?(n(),t("a",{key:0,href:`#${o.id}`},[a(s.$slots,"default")],8,f)):a(s.$slots,"default",{key:1})],8,u))}};export{m as default};