mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-22 05:55:13 +00:00
apply modified spec
This commit is contained in:
parent
880f842c4a
commit
100fb0bfbf
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue