mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 07:25:13 +00:00
Parser: improve performance
This commit is contained in:
parent
b09c3d4691
commit
c5189d8f52
1 changed files with 4 additions and 1 deletions
|
@ -121,7 +121,10 @@ inline
|
|||
// block: quote
|
||||
|
||||
quote
|
||||
= &(BEGIN ">") head:quoteMultiLine tails:quoteMultiLine+
|
||||
= &(BEGIN ">") q:quoteInner { return q; }
|
||||
|
||||
quoteInner
|
||||
= head:quoteMultiLine tails:quoteMultiLine+
|
||||
{
|
||||
const children = applyParser([head, ...tails].join('\n'), 'fullParser');
|
||||
return QUOTE(children);
|
||||
|
|
Loading…
Reference in a new issue