mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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
Notes:
sideshowbarker
2024-07-18 03:02:28 +09:00
Author: https://github.com/petelliott
Commit: 10f6f6a723
Pull-request: https://github.com/SerenityOS/serenity/pull/10271
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/kleinesfilmroellchen
16 changed files with 139 additions and 21 deletions
|
@ -56,7 +56,7 @@ String CodeBlock::render_for_terminal(size_t) const
|
|||
|
||||
static Regex<ECMA262> style_spec_re("\\s*([\\*_]*)\\s*([^\\*_\\s]*).*");
|
||||
|
||||
OwnPtr<CodeBlock> CodeBlock::parse(Vector<StringView>::ConstIterator& lines)
|
||||
OwnPtr<CodeBlock> CodeBlock::parse(LineIterator& lines)
|
||||
{
|
||||
if (lines.is_end())
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue