markdown preview: Fix infinite loop in parser when parsing list items (#19785)

Release Notes:

- Fixed an issue with the markdown parser when opening a markdown
preview file that contained HTML tags inside a list item
This commit is contained in:
Bennet Bo Fenner 2024-10-26 14:59:46 +02:00 committed by GitHub
parent d7a277607b
commit 03a1c8d2b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -626,6 +626,8 @@ impl<'a> MarkdownParser<'a> {
// Otherwise we need to insert the block after all the nested items
// that have been parsed so far
items.extend(block);
} else {
self.cursor += 1;
}
}
}