mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
779 B
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 lineconst 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