Alex Kocharin
|
8cd6fc34c4
|
Fix quadratic compexity on backticks
close https://github.com/markdown-it/markdown-it/issues/736
|
5 years ago |
Alex Kocharin
|
fece91e265
|
Fix backtick algorithm
now it more closely matches one in `cmark`
|
5 years ago |
Alex Kocharin
|
1e8aff0084
|
Fix quadratic time on backticks
This commit adds a cache `StateInline->backticks` which remembers
positions for every possible backtick closer (`, ``, ```, etc.).
Algorithm is similar to one described here:
685b714453
close https://github.com/markdown-it/markdown-it/issues/733
|
5 years ago |
Vitaly Puzrin
|
c36309ef1c
|
Bump eslint & update CS
|
6 years ago |
Alex Kocharin
|
7997fdadcd
|
Apply special rules for collapsing whitespace inside code blocks
Change as per commonmark 0.29 spec
See also:
e121b4e301
|
6 years ago |
Alex Kocharin
|
bb4dcf48f4
|
Set token.markup whereever appropriate
|
10 years ago |
Alex Kocharin
|
4aabd5592e
|
Use a common class for tokens
|
10 years ago |
Vitaly Puzrin
|
cda6c513b6
|
backtick -> backticks (revert)
|
11 years ago |
Vitaly Puzrin
|
90e5a9c9cc
|
Bulk rules rename (unify)
|
11 years ago |
Vitaly Puzrin
|
671fd4f3ed
|
eslint rules & coding style update
|
11 years ago |
Vitaly Puzrin
|
220efa32e8
|
updated eslint to 9.1 & did appropriate changes in sources
|
11 years ago |
Alex Kocharin
|
5d772b9bb6
|
Add validation mode to all inline rules
|
11 years ago |
Vitaly Puzrin
|
199976d09e
|
parse backticks without regex exec
|
11 years ago |
Alex Kocharin
|
0453b72bf1
|
Rename "lexer" to "parser"
and move rules from lexer_* to rules_*
|
11 years ago |
Alex Kocharin
|
46dc1f93ac
|
Add state.level everywhere
|
11 years ago |
Vitaly Puzrin
|
172e77c318
|
Added backticks parse
|
11 years ago |