apply modified spec

This commit is contained in:
marihachi 2022-05-21 19:06:29 +09:00
parent 880f842c4a
commit 100fb0bfbf

View file

@ -246,7 +246,7 @@ mathBlockLine
// block: center // block: center
center center
= BEGIN "<center>" LF? content:(!(LF? "</center>" END) @inline)+ LF? "</center>" END = BEGIN "<center>" LF? content:(!(LF? "</center>" END) @inline)* LF? "</center>" END
{ {
return CENTER(mergeText(content)); return CENTER(mergeText(content));
} }
@ -402,7 +402,7 @@ strikeContent
= &{ return enterNest(); } @(@(!("~" / LF) @inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); }) = &{ return enterNest(); } @(@(!("~" / LF) @inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); })
strikeTagContent strikeTagContent
= &{ return enterNest(); } @(@(!("</s>" / LF) @inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); }) = &{ return enterNest(); } @(@(!"</s>" @inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); })
L_strike L_strike
= "~~" content:L_strikeContent "~~" = "~~" content:L_strikeContent "~~"
@ -418,7 +418,7 @@ L_strikeContent
= &{ return enterNest(); } @(@(!("~" / LF) @L_inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); }) = &{ return enterNest(); } @(@(!("~" / LF) @L_inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); })
L_strikeTagContent L_strikeTagContent
= &{ return enterNest(); } @(@(!("</s>" / LF) @L_inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); }) = &{ return enterNest(); } @(@(!"</s>" @L_inline)+ &{ return leaveNest(); } / &{ return fallbackNest(); })
// inline: inlineCode // inline: inlineCode