This commit is contained in:
marihachi 2021-03-21 00:35:40 +09:00
parent c59548ace9
commit 771ba41ff8

View file

@ -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
//