henriklovhaug / md-tui

Markdown renderer in the terminal
GNU Affero General Public License v3.0
205 stars 13 forks source link

Weird rendering with windows style CRLF #139

Closed jkrshnmenon closed 3 months ago

jkrshnmenon commented 3 months ago

When trying to open a file that contains the windows style CRLF endings, the rendering looks weird. I can confirm that replacing the \x0d\x0a with \x0a does fix the rendering. But I'm not sure if this is a case you'd want to handle within mdt.

Screenshot of the problem is attached.

Screenshot from 2024-07-25 13-53-20

jkrshnmenon commented 3 months ago

Oops, forgot to upload the actual MD file.

foo.md

henriklovhaug commented 3 months ago

I have gotten the same bug on *nix system with another file. It wasn't a problem earlier, so I have to do a bisect to find the culprit.