"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../util/check-emphasis.cjs.js"),f=require("../util/encode-character-reference.cjs.js"),u=require("../util/encode-info.cjs.js");m.peek=C;function m(t,p,n,o){const r=k.checkEmphasis(n),l=n.enter("emphasis"),c=n.createTracker(o),s=c.move(r);let e=c.move(n.containerPhrasing(t,{after:r,before:s,...c.current()}));const i=e.charCodeAt(0),a=u.encodeInfo(o.before.charCodeAt(o.before.length-1),i,r);a.inside&&(e=f.encodeCharacterReference(i)+e.slice(1));const d=e.charCodeAt(e.length-1),h=u.encodeInfo(o.after.charCodeAt(0),d,r);h.inside&&(e=e.slice(0,-1)+f.encodeCharacterReference(d));const b=c.move(r);return l(),n.attentionEncodeSurroundingInfo={after:h.outside,before:a.outside},s+e+b}function C(t,p,n){return n.options.emphasis||"*"}exports.emphasis=m;
//# sourceMappingURL=emphasis.cjs.js.map
