From fa1a552a144b785795ba280bebfd3ed2692341ce Mon Sep 17 00:00:00 2001 From: Jks Liu Date: Mon, 27 Dec 2021 19:31:01 +0800 Subject: [PATCH] Allow trailing blanks --- meta.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta.js b/meta.js index 3f0ed39..a5c356c 100644 --- a/meta.js +++ b/meta.js @@ -19,7 +19,7 @@ function meta(md, state, start, end, silent) { if (state.tShift[start] < 0) { return false } - if (!get(state, start).match(/^---$/)) { + if (!get(state, start).match(/^---\s*$/)) { return false } const data = [] @@ -27,7 +27,7 @@ function meta(md, state, start, end, silent) { while (line < end) { line++ const str = get(state, line) - if (str.match(/^---$/)) { + if (str.match(/^---\s*$/)) { break } if (state.tShift[line] < 0) {