1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00

LibMarkdown: Add LineIterator

LineIterator wraps a vector's ConstIterator, to provide an iterator that
can work on indented container blocks (like lists and blockquotes).
This commit is contained in:
Peter Elliott 2021-09-19 11:14:18 -06:00 committed by Ali Mohammad Pur
parent cd560d3ae3
commit 10f6f6a723
16 changed files with 139 additions and 21 deletions

View file

@ -35,7 +35,7 @@ String Heading::render_for_terminal(size_t) const
return builder.build();
}
OwnPtr<Heading> Heading::parse(Vector<StringView>::ConstIterator& lines)
OwnPtr<Heading> Heading::parse(LineIterator& lines)
{
if (lines.is_end())
return {};