mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:57:35 +00:00
LibMarkdown: Convert render_to_terminal to String
This commit converts render_to_terminal from DeprecatedString to return an ErrorOr<String>. This is to aid moving `man` away from DeprecatedString. I have opted not to convert render_to_html and render_to_inline_html for now to keep this commit as small as possible.
This commit is contained in:
parent
e247da507f
commit
e44abaa777
4 changed files with 14 additions and 8 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibMarkdown/Block.h>
|
||||
#include <LibMarkdown/ContainerBlock.h>
|
||||
|
||||
|
@ -21,7 +22,7 @@ public:
|
|||
}
|
||||
DeprecatedString render_to_html(StringView extra_head_contents = ""sv) const;
|
||||
DeprecatedString render_to_inline_html() const;
|
||||
DeprecatedString render_for_terminal(size_t view_width = 0) const;
|
||||
ErrorOr<String> render_for_terminal(size_t view_width = 0) const;
|
||||
|
||||
/*
|
||||
* Walk recursively through the document tree. Returning `RecursionDecision::Recurse` from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue