${escape(c)}`);
// bold+italic
s = s.replace(/\*\*\*(.+?)\*\*\*/g,"$1");
// bold
s = s.replace(/\*\*(.+?)\*\*/g,"$1");
s = s.replace(/__(.+?)__/g,"$1");
// italic
s = s.replace(/\*(.+?)\*/g,"$1");
s = s.replace(/_([^_]+)_/g,"$1");
// strikethrough
s = s.replace(/~~(.+?)~~/g,"${escape(code.join("\n"))}`);
continue;
}
// Headings
const hM = line.match(/^(#{1,6})\s+(.*)/);
if(hM){
const lvl = hM[1].length;
out.push(`${parse(bq.join("\n"))}`); continue; } // Unordered list if(/^[-*+]\s/.test(line)){ const items = []; while(i
${parseInline(para.join(" "))}
`); } return out.join("\n"); } global.marked = { parse: function(src, opts) { const breaks = opts && opts.breaks; // With breaks:true, single newlines in paragraphs become