Skip to content
Snippets Groups Projects
Commit 771ba41f authored by marihachi's avatar marihachi
Browse files

fix #27

parent c59548ac
No related branches found
No related tags found
No related merge requests found
......@@ -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
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment