vscode-markdown-shortcuts
vscode-markdown-shortcuts copied to clipboard
Add support for toggleLineBreaks (2 spaces at the end of each line)
This is a very common case. After pasting a paragraph, In order for the lines to be retained, 2 spaces need to be added at the end of each line. It would be nice to support this.
Hi @ghuser, can you please explain a bit more? Could you give some sample input and output? Thanks!
See: https://daringfireball.net/projects/markdown/syntax#p
"When you do want to insert a
break tag using Markdown, you end a line with two or more spaces, then type return."
input (the input below is rendered as a b c
in one line):
a
b
c
command:toggleLineBreaks
output (2 spaces at the end of each line):
a
b
c
Then it is rendered as 3 separate lines.
The opposite should also work. E.g. remove the spaces from the end of each line.
Ahh, thanks for the clarification. I wasn't aware of this.