sx.el icon indicating copy to clipboard operation
sx.el copied to clipboard

Indentation is removed from triple-backtick code blocks

Open oantolin opened this issue 5 years ago • 0 comments

There are two ways to write code blocks in StackExchnge sites:

  • Original Markdown syntax: indent each line by four spaces
  • GitHub-Flavored Markdown syntax: put the code block within triple-backquotes.

The 4-space indented blocks display correctly in sx.el, but the triple-backquoted ones lose their whitespace and get crammed into just a few lines. This question has two answers each using a different syntax for the block and you can see the difference if you visit it in sx.el: question with two types of code block.

oantolin avatar May 12 '20 14:05 oantolin