Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/biome_markdown_parser/src/syntax/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1902,6 +1902,10 @@ fn parse_first_line_atx_heading(p: &mut MarkdownParser, state: &mut ListItemLoop

let header_m = p.start();

// Emit the required MdIndentTokenList slot (slot 0) so the CST matches the grammar.
// In list context we are never at line start, so this produces an empty list node.
p.emit_line_indent(MAX_BLOCK_PREFIX_INDENT);

// Can't reuse header::parse_hash_list(): in list context `#` may be lexed as
// MD_TEXTUAL_LITERAL and requires bump_remap. Keep in sync with parse_hash_list().
let hash_list_m = p.start();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- # Foo
- Bar
---
baz

- ## Level 2

* ### Level 3

- ###### Level 6

- # Trailing hash #

1. # Ordered heading
2. ## Ordered level 2
Loading
Loading