/* esm.sh - mdast-util-gfm-strikethrough@2.0.1 */
var c=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];o.attention=f;o.peek=l;function s(){return{canContainEols:["delete"],enter:{strikethrough:k},exit:{strikethrough:g}}}function a(){return{handlers:{delete:o},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:c}]}}function k(t){this.enter({type:"delete",children:[],position:void 0},t)}function g(t){this.exit(t)}function o(t,d,e,u){let n=e.createTracker(u),i=e.stack.includes("strikethrough")?"~":"~~",h=e.enter("strikethrough"),r=n.move(i);return r+=e.containerPhrasing(t,{...n.current(),before:r,after:"~"}),r+=n.move(i),h(),r}function f(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function l(){return"~"}export{s as gfmStrikethroughFromMarkdown,a as gfmStrikethroughToMarkdown};
//# sourceMappingURL=mdast-util-gfm-strikethrough.mjs.map