1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:57:45 +00:00

LibMarkdown: Make thematic break parsing more correct

also fix a conflict with lists and thematic breaks
This commit is contained in:
Peter Elliott 2022-04-24 22:44:53 -06:00 committed by Andreas Kling
parent 5ad44ac2e5
commit c15c57a6af
2 changed files with 6 additions and 10 deletions

View file

@ -108,11 +108,11 @@ OwnPtr<ContainerBlock> ContainerBlock::parse(LineIterator& lines)
}
bool any = try_parse_block<Table>(lines, blocks)
|| try_parse_block<HorizontalRule>(lines, blocks)
|| try_parse_block<List>(lines, blocks)
|| try_parse_block<CodeBlock>(lines, blocks)
|| try_parse_block<CommentBlock>(lines, blocks)
|| try_parse_block<Heading>(lines, blocks)
|| try_parse_block<HorizontalRule>(lines, blocks)
|| try_parse_block<BlockQuote>(lines, blocks);
if (any) {