From 100fb0bfbfc6c123da23e294c06900e4a5cd2cda Mon Sep 17 00:00:00 2001 From: marihachi Date: Sat, 21 May 2022 19:06:29 +0900 Subject: [PATCH] apply modified spec --- src/internal/parser.pegjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/parser.pegjs b/src/internal/parser.pegjs index 0f89f49..47e23d9 100644 --- a/src/internal/parser.pegjs +++ b/src/internal/parser.pegjs @@ -246,7 +246,7 @@ mathBlockLine // block: center center - = BEGIN "
" LF? content:(!(LF? "
" END) @inline)+ LF? "" END + = BEGIN "
" LF? content:(!(LF? "
" END) @inline)* LF? "" END { return CENTER(mergeText(content)); } @@ -402,7 +402,7 @@ strikeContent = &{ return enterNest(); } @(@(!("~" / LF) @inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); }) strikeTagContent - = &{ return enterNest(); } @(@(!("" / LF) @inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); }) + = &{ return enterNest(); } @(@(!"" @inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); }) L_strike = "~~" content:L_strikeContent "~~" @@ -418,7 +418,7 @@ L_strikeContent = &{ return enterNest(); } @(@(!("~" / LF) @L_inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); }) L_strikeTagContent - = &{ return enterNest(); } @(@(!("" / LF) @L_inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); }) + = &{ return enterNest(); } @(@(!"" @L_inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); }) // inline: inlineCode