8

If I have a code block which is created using three backticks (```) inside a nested list, a second empty code block sometimes gets added after the list. For example, this markdown code:

1. Testing a strange bug:
    - ```
      testing something
      ```

Renders like this:

  1. Testing a strange bug:
    • testing something
      
    
    

Here is a screenshot so that you can understand what this question is about even after this bug gets fixed:

enter image description here

This bug seems to only appear if there is a certain number of spaces before the second list. For example, this renders normally:

1. Testing a strange bug:
      - ```
        testing something
        ```

The only difference between this code and the previous one is that the second list containing the code is indented two extra spaces.

Also, this bug doesn't appear in the preview when editing posts, it only appears after having submitted the post.

1 Answer 1

6

I tested to confirm that this bug was fixed a while ago and that indeed appears to be the case. I've updated to .

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .