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

LibMarkdown: Add render_to_inline_html() to Document

This api is useful when you want to render a markdown document to HTML,
but you want to embed it in a existing html document.
This commit is contained in:
Peter Elliott 2021-08-29 13:14:48 -07:00 committed by Andreas Kling
parent 83680934e5
commit 57ec19f963
2 changed files with 12 additions and 2 deletions

View file

@ -15,6 +15,7 @@ namespace Markdown {
class Document final {
public:
String render_to_html() const;
String render_to_inline_html() const;
String render_for_terminal(size_t view_width = 0) const;
static OwnPtr<Document> parse(const StringView&);