Files

779 B

Example 1 (compact list with code block)

  • Sibling item before
  • A bullet point with bare text (not in a <p>), followed by a code block that includes an empty line
    const foo = "bar";
    
    console.log(foo);
    
  • Sibling item after

Example 2 (compact nested list with code block)

  • Parent bullet point which is not wrapped in <p>
    • Sibling item before
    • Item containing a code block that includes an empty line
      const foo = "bar";
      
      console.log(foo);
      
    • Sibling item after

Example 3 (like example 2, but doesn't trigger the bug)

  • It works as expected
    • If the code block
    • Does not have a line break
      const foo = "bar";
      console.log(foo);
      
    • It doesn't affect other items