"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../util/check-quote.cjs.js");c.peek=a;function c(o,v,t,l){const u=m.checkQuote(t),f=u==='"'?"Quote":"Apostrophe",n=t.enter("image");let i=t.enter("label");const e=t.createTracker(l);let r=e.move("![");return r+=e.move(t.safe(o.alt,{before:r,after:"]",...e.current()})),r+=e.move("]("),i(),!o.url&&o.title||/[\0- \u007F]/.test(o.url)?(i=t.enter("destinationLiteral"),r+=e.move("<"),r+=e.move(t.safe(o.url,{before:r,after:">",...e.current()})),r+=e.move(">")):(i=t.enter("destinationRaw"),r+=e.move(t.safe(o.url,{before:r,after:o.title?" ":")",...e.current()}))),i(),o.title&&(i=t.enter(`title${f}`),r+=e.move(" "+u),r+=e.move(t.safe(o.title,{before:r,after:u,...e.current()})),r+=e.move(u),i()),r+=e.move(")"),n(),r}function a(){return"!"}exports.image=c;
//# sourceMappingURL=image.cjs.js.map
