This commit is contained in:
Timothy Jaeryang Baek
2026-04-01 05:30:07 -05:00
parent 512d090f6c
commit eb5c95ef8e
@@ -11,7 +11,7 @@
function colonFenceTokenizer(this: any, src: string) { function colonFenceTokenizer(this: any, src: string) {
// Match :::type at the start of a line, optionally followed by content, then closing ::: // Match :::type at the start of a line, optionally followed by content, then closing :::
const match = /^:::([\w-]+)\n([\s\S]*?)(?:\n:::(?:\s*$|\n))/m.exec(src); const match = /^:::([\w-]+)[^\n]*\n([\s\S]*?)(?:\n:::(?:\s*(?:\n|$)))/.exec(src);
if (match) { if (match) {
const fenceType = match[1]; const fenceType = match[1];
const text = match[2].trim(); const text = match[2].trim();