Hard break (GitHub's issues, pull requests, comments, discussions, ...):
First line
Second line
It's unfortunate that GitHub decided to do this but it's such a major Markdown-based platform that it cannot be ignored. I'd love if there was a way in Nota to have an option to treat newline as GitHub does – right now, it follows "only" CommonMark which always treats those as soft line breaks.
I'd even think about having a "pragma" in each file so that the behavior could be per-file. For example:
<!-- newline=hard-break -->
This document would render as on GitHub,
i.e., with hard breaks.
The option should affect at least two things:
Preview
What is copied into clipboard when Copy as Rich Text is used
What do you think? I know this is controversial but I've seen some MD editors do this (not per-file pragma but a global option, usually).
Famously,
can be rendered as both:
It's unfortunate that GitHub decided to do this but it's such a major Markdown-based platform that it cannot be ignored. I'd love if there was a way in Nota to have an option to treat newline as GitHub does – right now, it follows "only" CommonMark which always treats those as soft line breaks.
I'd even think about having a "pragma" in each file so that the behavior could be per-file. For example:
The option should affect at least two things:
What do you think? I know this is controversial but I've seen some MD editors do this (not per-file pragma but a global option, usually).