Saturday, May 25, 2024

markdown syntax: new lines

useful, not obvious formatting options:

 How to add new line in Markdown presentation? - Stack Overflow

  • add two spaces to a line = new line

  • add backslash \ to a line = new line

  • add <br> to a line = new line

  • escape block with ``` = preserves new lines, but no formatting, not the same


Basic Syntax | Markdown Guide

CommonMark and a few other lightweight markup languages let you type a backslash (\) at the end of the line, but not all Markdown applications support this, so it isn’t a great option from a compatibility perspective. 


No comments: