From b6bb438507d8ab612dfc7692747857c6c8c55438 Mon Sep 17 00:00:00 2001 From: Dick Choi Date: Wed, 27 Jul 2016 17:54:16 +0900 Subject: [PATCH] fix checkbox rendering bug it doesn't render multiline content properly --- browser/lib/markdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/lib/markdown.js b/browser/lib/markdown.js index 56d4070e..54ef51c8 100644 --- a/browser/lib/markdown.js +++ b/browser/lib/markdown.js @@ -96,9 +96,9 @@ md.block.ruler.at('paragraph', function (state, startLine/*, endLine*/) { token.map = [ startLine, state.line ] if (state.parentType === 'list') { - let match = content.match(/\[( |x)\] ?(.+)/i) + let match = content.match(/^\[( |x)\] ?(.+)/i) if (match) { - content = `` + content = `` } }