mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
LibMarkdown: Limit headings to 6 levels
This commit is contained in:
parent
c15c57a6af
commit
116e0dc4de
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ OwnPtr<Heading> Heading::parse(LineIterator& lines)
|
|||
break;
|
||||
}
|
||||
|
||||
if (!level || level >= line.length() || line[level] != ' ')
|
||||
if (!level || level >= line.length() || line[level] != ' ' || level > 6)
|
||||
return {};
|
||||
|
||||
StringView title_view = line.substring_view(level + 1, line.length() - level - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue