3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 15:15:44 +01:00

Read deep list items' blank lines and a directive's unclosed backtick runs in time linear in the markdown

This commit is contained in:
2026-10-18 11:15:30 +02:00
committed by Lillem4n
parent a9cdd70365
commit d82b7abb3f
11 changed files with 119 additions and 71 deletions
+5
View File
@@ -20,6 +20,11 @@
`<![CDATA[` or `<!` openers without a terminator, or many unclosed backtick runs outside a
directive's `[content]`. Such a text took time quadratic in its length: 160000 characters of `<?`
took seven seconds each way, now 50 ms.
- Every reader takes time linear in the markdown when it holds many unclosed backtick runs inside an
inline directive's `[content]`, or blank lines or indented lines under list items nested deeply.
640000 characters of backtick runs in a directive took one second, now 100 ms; 20000 nested items
and as many blank lines took 10.7 seconds before they were refused as `unsupported-nesting-depth`,
now 40 ms.
- The README compares the package with seven other ADF converters, each checked against its
published version.