From 6d2f7c4c535205f0c8046a57c16feabb13d71b12 Mon Sep 17 00:00:00 2001 From: marihachi <marihachi0620@gmail.com> Date: Mon, 24 Feb 2020 01:07:04 +0900 Subject: [PATCH] fix bug: title --- src/parser/core-parser.pegjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/core-parser.pegjs b/src/parser/core-parser.pegjs index 29b7061..50740e4 100644 --- a/src/parser/core-parser.pegjs +++ b/src/parser/core-parser.pegjs @@ -56,13 +56,13 @@ title = titleA / titleB titleA - = BEGINLINE "ã€" content:(!("】" ENDLINE) i:inline { return i; })+ "】" ENDLINE + = BEGINLINE "ã€" content:(!(NEWLINE / "】" ENDLINE) i:inline { return i; })+ "】" ENDLINE { return createTree('title', { }, mergeText(content)); } titleB - = BEGINLINE "[" content:(!("]" ENDLINE) i:inline { return i; })+ "]" ENDLINE + = BEGINLINE "[" content:(!(NEWLINE / "]" ENDLINE) i:inline { return i; })+ "]" ENDLINE { return createTree('title', { }, mergeText(content)); } -- GitLab