Commit Graph
1 Commits
Author SHA1 Message Date
linkliti 8ad72a9942 fix(webui): require double tildes for markdown strikethrough
The vendored marked parser treats paired single tildes as strikethrough delimiters, so prose using ~ for approximate values collapsed the text between two tildes into mangled del markup and dropped neighboring emphasis. Override the del tokenizer on the shared marked instance to accept only double-tilde spans like GitHub, leaving single tildes as literal text in every renderer that imports safe-markdown.

Validation: pytest tests/test_markdown_tilde_rendering.py (2 passed, node-backed render of the reported sentence plus ~~text~~ strike); pytest responses-history and office-canvas suites (1 pre-existing failure at HEAD, proven by stash run).
2026-10-13 18:06:47 +03:00