Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Refactor to remove regular expressions
...in favour of an algorithmic approach. * [x] `yamlFrontMatter` * [x] `newline` * [x] `code` * [x] `horizontalRule` * [x] `escape` * [x] `deletion` * [x] `break` * [x] `inlineText` * [x] `fences` * [x] `heading` * [x] `lineHeading` * [x] `blockquote` * [x] `list` * [x] `html` * [x] `definition` * [x] `footnoteDefinition` * [x] `looseTable` * [x] `table` * [ ] `paragraph` * [x] `autoLink` * [x] `url` * [x] `tag` * [x] `link` * [x] `reference` * [x] `shortcutReference` * [x] `strong` * [x] `emphasis` * [x] `inlineCode` New features: * Add support for `silent` mode on tokenisers, which will detect whether a given value would match that tokeniser, but without eating any actual content. Regressions (either todo or in the subsequent major release): * Malformed HTML block elements are not supported. Fixes: * Handles mismatched parentheses in links arguably better; * Fix continued block-quotes in non-GFM-mode; * Fix block-quotes followed by lazy definitions in commonmark-mode; Todo: * A lot of places support escaped (a slash followed by another character), instead of allowing any character to be escaped, only certain characters should be supported (e.g., all ASCII-character for commonmark-mode, and several separate subsets on other flavours); * blockquotes followed by partially lazy fences in commonmark-mode are still not perfect. [ci skip]
- Loading branch information