Fenced code is trimmed in one pass. Release 0.3.1. #3
Loading…
Reference in a new issue
No description provided.
Delete branch "oliver.maklott/linear-trim"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The fence scanner trimmed each block with
/\s+$/. On a block that holds a long run of whitespace followed by more text, the regex rescans the run from each of its characters: 200 KB of blanks took over 20 s in the app process.trimEnd()removes the same characters in one pass.Tests:
highlight-markdown.test.ts(one new).🤖 Generated with Claude Code
https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
Pull request closed