1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:27:35 +00:00

LibMarkdown: Add start numbers for ordered lists

5. hey -> <ol start="5"><li>hey</li></ol>
This commit is contained in:
Peter Elliott 2021-09-29 23:19:56 -06:00 committed by Ali Mohammad Pur
parent a76a23e33b
commit 285038ebcf
2 changed files with 16 additions and 3 deletions

View file

@ -15,10 +15,11 @@ namespace Markdown {
class List final : public Block {
public:
List(Vector<OwnPtr<ContainerBlock>> items, bool is_ordered, bool is_tight)
List(Vector<OwnPtr<ContainerBlock>> items, bool is_ordered, bool is_tight, size_t start_number)
: m_items(move(items))
, m_is_ordered(is_ordered)
, m_is_tight(is_tight)
, m_start_number(start_number)
{
}
virtual ~List() override { }
@ -32,6 +33,7 @@ private:
Vector<OwnPtr<ContainerBlock>> m_items;
bool m_is_ordered { false };
bool m_is_tight { false };
size_t m_start_number { 1 };
};
}