diff --git a/src/parser.pegjs b/src/parser.pegjs
index f6f8923..076a579 100644
--- a/src/parser.pegjs
+++ b/src/parser.pegjs
@@ -129,19 +129,11 @@ mathBlockLine
// block: center
center
- = BEGIN "
" LF? content:centerLines LF? "" END
+ = BEGIN "" content:(!("" END) i:inline { return i; })+ "" END
{
- const children = applyParser(content, 'inlineParser');
- return createNode('center', { }, children);
+ return createNode('center', { }, mergeText(content));
}
-centerLines
- = centerLine (LF centerLine)*
-{ return text(); }
-
-centerLine
- = (!("" END) CHAR)+
-
//
// inline rules
//