mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +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:
parent
cd560d3ae3
commit
10f6f6a723
16 changed files with 139 additions and 21 deletions
|
@ -46,7 +46,7 @@ String List::render_for_terminal(size_t) const
|
|||
return builder.build();
|
||||
}
|
||||
|
||||
OwnPtr<List> List::parse(Vector<StringView>::ConstIterator& lines)
|
||||
OwnPtr<List> List::parse(LineIterator& lines)
|
||||
{
|
||||
Vector<Text> items;
|
||||
bool is_ordered = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue