fixup! block: fix headings with first line empty
This commit is contained in:
parent
08332bed5e
commit
2893977dae
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ impl<'s> TreeParser<'s> {
|
||||||
self.tree.enter(Node::Leaf(leaf), span);
|
self.tree.enter(Node::Leaf(leaf), span);
|
||||||
lines
|
lines
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|l| !l.is_empty())
|
.filter(|l| !matches!(k, Kind::Heading { .. }) || !l.is_empty())
|
||||||
.for_each(|line| self.tree.inline(*line));
|
.for_each(|line| self.tree.inline(*line));
|
||||||
self.tree.exit();
|
self.tree.exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue