gist-markdown-preview icon indicating copy to clipboard operation
gist-markdown-preview copied to clipboard

Code-block text issue

Open libesz opened this issue 6 years ago • 2 comments

When I write code-blocks in a gist which are part of an indented text, it displays differently in the preview than in the final rendered view. In the preview, the indentations are interpreted wrongly (seems not indented), while the code block itself is aligned correctly to the list. In the rendered version the code block is aligned to the left and the code indentations are as they written in src.

Example:

  • list
    • more list
{
  {
    code block example in a list
  }
}

libesz avatar Dec 03 '18 08:12 libesz

@libesz Could you check whether this is working fine in marked.js

revathskumar avatar Dec 06 '18 15:12 revathskumar

Actually it produces a third printout 😄 . It renders the code block text into a single line in the output.

libesz avatar Dec 06 '18 15:12 libesz