mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-21 15:42:58 +01:00
Read an inline link's target in time linear in the inline markdown
This commit is contained in:
@@ -49,6 +49,8 @@
|
||||
holds many unclosed backtick runs: 640000 characters of them took one second, now 100 ms.
|
||||
- Every reader takes time linear in the inline markdown when emphasis spans many links, or many
|
||||
closing brackets follow a link: 8000 links inside 8000 `*` took two seconds, now about 100 ms.
|
||||
- Every reader takes time linear in the inline markdown when it holds many `](` that open no link,
|
||||
as in `[a](b` repeated: 16000 of them took 25 seconds, now 80 ms.
|
||||
- Every reader leaves `[text]`, `[text][]`, `[text][label]` and a definition `[label]: url` literal
|
||||
when the label runs over 999 characters, where it read them as a link or a definition. CommonMark
|
||||
caps a label at 999 characters, an escape counting as two.
|
||||
|
||||
Reference in New Issue
Block a user