5

This Markdown:

- foo

  
  if (Math.random() < 0.5) {
    console.log("hello, world!");
  } else {
    console.log("goodbye, cruel world!");
  }

  

Renders as:

  • foo
    > 
    >       if (Math.random() < 0.5) {
    >         console.log("hello, world!");
    >       } else {
    >         console.log("goodbye, cruel world!");
    >       }
    > 
    >   

Oh wait, it works even worse embedded in a blockquote. Well, let me try again:

  • foo
      if (Math.random() < 0.5) {
        console.log("hello, world!");
      } else {
        console.log("goodbye, cruel world!");
      }
    
      

And in preview it looks even more bizarre:

screenshot of the above rendered in preview mode

Wait, never mind – rendered on the page is worse after all:

screenshot of the same rendered on the page

1

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.