Skip to content

Commit eb5c95e

Browse files
committed
refac
1 parent 512d090 commit eb5c95e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/utils/marked/colon-fence-extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
function colonFenceTokenizer(this: any, src: string) {
1313
// Match :::type at the start of a line, optionally followed by content, then closing :::
14-
const match = /^:::([\w-]+)\n([\s\S]*?)(?:\n:::(?:\s*$|\n))/m.exec(src);
14+
const match = /^:::([\w-]+)[^\n]*\n([\s\S]*?)(?:\n:::(?:\s*(?:\n|$)))/.exec(src);
1515
if (match) {
1616
const fenceType = match[1];
1717
const text = match[2].trim();

0 commit comments

Comments
 (0)