mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 07:25:13 +00:00
fix #27
This commit is contained in:
parent
c59548ace9
commit
771ba41ff8
1 changed files with 2 additions and 10 deletions
|
@ -129,19 +129,11 @@ mathBlockLine
|
|||
// block: center
|
||||
|
||||
center
|
||||
= BEGIN "<center>" LF? content:centerLines LF? "</center>" END
|
||||
= BEGIN "<center>" content:(!("</center>" END) i:inline { return i; })+ "</center>" END
|
||||
{
|
||||
const children = applyParser(content, 'inlineParser');
|
||||
return createNode('center', { }, children);
|
||||
return createNode('center', { }, mergeText(content));
|
||||
}
|
||||
|
||||
centerLines
|
||||
= centerLine (LF centerLine)*
|
||||
{ return text(); }
|
||||
|
||||
centerLine
|
||||
= (!("</center>" END) CHAR)+
|
||||
|
||||
//
|
||||
// inline rules
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue