diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-09-20 16:41:04 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-27 21:14:18 +0200 |
commit | aa65f664a97abca040663768936b59fa29c2a9e6 (patch) | |
tree | 4d4b23a7b5e93bcdd00c5afb0632da9e058582fd /Libraries/LibMarkdown/Block.h | |
parent | 5fbec2b003081f0b444f88b18e3250a96dbdd13f (diff) | |
download | serenity-aa65f664a97abca040663768936b59fa29c2a9e6.zip |
LibMarkdown: Take a 'view_width' argument for render_for_terminal()
Some constructs will require the width of the terminal (or a general
'width') to be rendered correctly, such as tables.
Diffstat (limited to 'Libraries/LibMarkdown/Block.h')
-rw-r--r-- | Libraries/LibMarkdown/Block.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibMarkdown/Block.h b/Libraries/LibMarkdown/Block.h index b1d96146c4..239c473165 100644 --- a/Libraries/LibMarkdown/Block.h +++ b/Libraries/LibMarkdown/Block.h @@ -36,7 +36,7 @@ public: virtual ~Block() { } virtual String render_to_html() const = 0; - virtual String render_for_terminal() const = 0; + virtual String render_for_terminal(size_t view_width = 0) const = 0; }; } |