This repository has been archived by the owner on Jun 8, 2024. It is now read-only.
Line wrapping before number at end of sentence incorrectly creates numbered list #164
Open
1 task done
Describe the bug
When a sentence ends with a number immediately before the period, this can get wrapped onto a new line.
This happens when the number is exactly at the line length limit.
When this happens, the Typst compiler interprets it as the start of a numbered list, and therefore the output for the rest of the paragraph is incorrect.
To Reproduce
Minimal example:
With the default settings, Typstfmt formats this as
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: