Skip to content

Fix CRLF line ending handling when processing markdown - #145

Merged
sam-shift72 merged 1 commit into
masterfrom
handle-crlf-line-endings
Jan 7, 2026
Merged

Fix CRLF line ending handling when processing markdown#145
sam-shift72 merged 1 commit into
masterfrom
handle-crlf-line-endings

Conversation

@sam-shift72

Copy link
Copy Markdown
Contributor

@l0ud0gg I wonder if this is the root cause of the issue you mentioned this morning about inconsistent linebreaks on pages.

I had pasted in a test page and it must have been saved with \r\n line endings (windows style). The markdown lib kibble uses has an open issue from 8 years ago about this -- it doesn't detect the paragraph breaks with CRLF endings and creates one big paragraph. It probably leaves the \r\n in the HTML though, and so depending on the CSS whitespace handling it might still draw a linebreak, but at the natural lineheight, not the <p> spacing.

@l0ud0ggl0ud0gg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice find!

@sam-shift72
sam-shift72 merged commit f7abe22 into masterJan 7, 2026
2 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@sam-shift72@l0ud0gg