diff --git a/src/coreParser.pegjs b/src/coreParser.pegjs index 2cc84c29dce6724c850acef7dca970db66746c1e..a4330ea993d70c31663f99d578145aeabcc2adcb 100644 --- a/src/coreParser.pegjs +++ b/src/coreParser.pegjs @@ -1,4 +1,4 @@ -// start = syntax +start = root // general @@ -8,3 +8,39 @@ lineBreak = "\n" / "\r\n" / "\r" spacing = space / lineBreak + +// parts + +plain + = emoji + / text + +block + = title + / quote + / search + / blockCode + / mathBlock + / center + +inline + = big + / bold + / small + / italic + / strike + / motion + / spin + / jump + / flip + / inlineCode + / mathInline + / mention + / hashtag + / url + / link + / plain + +root + = block + / inline