Files
llm-in-text/.build-check/assets/vendor-mdast-util-gfm-strikethrough-Cj9qKt6Q.js
T

2 lines
624 B
JavaScript
Raw Normal View History

const h=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];o.peek=s;function l(){return{canContainEols:["delete"],enter:{strikethrough:a},exit:{strikethrough:c}}}function g(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:h}],handlers:{delete:o}}}function a(e){this.enter({type:"delete",children:[]},e)}function c(e){this.exit(e)}function o(e,k,r,i){const n=r.createTracker(i),u=r.enter("strikethrough");let t=n.move("~~");return t+=r.containerPhrasing(e,{...n.current(),before:t,after:"~"}),t+=n.move("~~"),u(),t}function s(){return"~"}export{g as a,l as g};