web-components: Support Hardbreaks in Markdown
Feature Request 🛍️
Hardbreaks are handled in the commonmark spec, and should be supported in the editor
Use Case
A user would expect the editor to respect their wishes to maintain extra spaces
Possible Solution
A toolbar button or hotkey shortcut?
Context
This should persist:
Via a something.md
file which looks like:
Foo\
\
\
bar
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 31 (26 by maintainers)
To reiterate the point I finished on in the call:
This is new tech, and we should not hamstring it by trying to force it to fit the model of the past (Word, Docs, XML, PDF). There won’t be a way out of having a learning curve, but we just need to minimize the curve with thoughtful assistance.
I think updating to markdown for the benefit of consistency and ability to machine-read becomes more useless the more we try to force it into taking the same shape as pre-markdown.
@jeromesimeon Yes - something involving a backslash (
) is all that would be needed.
\
) or double-space at the end of a line (That’s interesting. I can’t say I 100% follow your idea, but it makes me think of inline-replacement / escape sequences. e.g., in Slack you write
- something
and it automatically turns it into a rich-text bullet. Is that the kind of thing you’re thinking about?Might be a bit more ambitious than simply solving the specific issue of line breaks but that could be an interesting direction.
For reference