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

Answer stability round 1: 0 🔴, 6 🟡; share the label limit with readLabel, pin it at 1000 characters, move item 129 to the changelog

This commit is contained in:
2026-10-23 11:23:23 +02:00
committed by Lillem4n
parent ddcfa6ee1a
commit 94f4df4dcf
4 changed files with 17 additions and 9 deletions
+5 -2
View File
@@ -37,8 +37,11 @@
20 lines of 40000 tabs under 80000 nested items took 1988 ms.
- `losslessMarkdownToAdf` takes time linear in the markdown when an inline directive's `[content]`
holds many unclosed backtick runs: 640000 characters of them took one second, now 100 ms.
- Every reader leaves `[text]` and `[text][]` literal when the text runs over 999 characters, where
it read them as a link to the matching definition: CommonMark caps a link label at 999 characters.
- 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 4.4 seconds, now 170 ms.
- Every reader leaves a link label over 999 characters literal, counting an escape as two, where it
read a link to the matching definition: CommonMark caps a link label at 999 characters. This holds
for `[text]`, `[text][]`, `[text][label]` and the definition `[label]: url` alike.
- The README compares the package with seven other ADF converters, each checked against its
published version.