We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 512d090 commit eb5c95eCopy full SHA for eb5c95e
1 file changed
src/lib/utils/marked/colon-fence-extension.ts
@@ -11,7 +11,7 @@
11
12
function colonFenceTokenizer(this: any, src: string) {
13
// 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);
+ const match = /^:::([\w-]+)[^\n]*\n([\s\S]*?)(?:\n:::(?:\s*(?:\n|$)))/.exec(src);
15
if (match) {
16
const fenceType = match[1];
17
const text = match[2].trim();
0 commit comments