-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add inline caching and merging to parser
Add merging capability to the inline parser. This is needed in cases where one inline is parsed until the next one, where they don't have the same kind. After fully parsing the next inline it gets converted into some other inline kind that may be the same as the previous one. This produces two distinct inlines that could have been merged. Since the parser is implemented as an `Iterator`, it is necessary to parse the next inline before deciding whether the two can be merged. Merging is not always possible, and sometimes only part of the inline is merged. That is why the caching is also needed.
- Loading branch information
Showing
1 changed file
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters