refac
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user