Repository navigation
Commit 5890080
fix: Stop carriage returns leaking out of unresolved reference links
Reference links and reference images that cannot be resolved render their
raw source as text. Every other renderer that emits raw source normalizes
its line endings first, but these four call sites did not, so a reference
label spanning a CRLF line ending leaked its carriage return into the
rendered output.
Normalize the line endings there as well, matching what the surrounding
renderers already do. Output for sources using plain newlines is
unchanged, since normalizing them is a no-op.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 62f6d15 commit 5890080
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | | - | |
770 | | - | |
| 769 | + | |
| 770 | + | |
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| |||
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
| 822 | + | |
822 | 823 | | |
823 | | - | |
| 824 | + | |
824 | 825 | | |
825 | | - | |
| 826 | + | |
826 | 827 | | |
827 | | - | |
| 828 | + | |
828 | 829 | | |
829 | 830 | | |
830 | 831 | | |
| |||
0 commit comments