inseven / incontext-python

Extensible static site generator
https://incontext.app
MIT License
4 stars 1 forks source link

fix: Support Unicode line separators in Front Matter and Markdown #173

Closed jbmorley closed 2 years ago

jbmorley commented 2 years ago

The Front Matter and Markdown libraries we’re using don’t seem to know what to do with Unicode line separators; they just ignore them. This means that content generated by editors which insert these instead of regular new lines (I’m looking at you, Photos for macOS) doesn’t render correctly. This change pre-processes the input to replace Unicode line separators (\u2028) with a regular new line (\n).