mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26:22 +00:00
LibMarkdown: Change internal MD API to return OwnPtrs
Previously, all Markdown blocks had a virtual parse method which has been swapped out for a static parse method returning an OwnPtr of that block's type. The Text class also now has a static parse method that will return an Optional<Text>.
This commit is contained in:
parent
7ca562b200
commit
20faa93cb0
Notes:
sideshowbarker
2024-07-19 05:58:57 +09:00
Author: https://github.com/FalseHonesty
Commit: 20faa93cb0
Pull-request: https://github.com/SerenityOS/serenity/pull/2195
Reviewed-by: https://github.com/bugaevc
15 changed files with 110 additions and 64 deletions
|
@ -37,7 +37,6 @@ public:
|
|||
|
||||
virtual String render_to_html() const = 0;
|
||||
virtual String render_for_terminal() const = 0;
|
||||
virtual bool parse(Vector<StringView>::ConstIterator& lines) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue