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.
This commit is contained in:
AnotherTest 2020-09-20 16:41:04 +04:30 committed by Andreas Kling
commit aa65f664a9
Notes: sideshowbarker 2024-07-19 02:09:47 +09:00
12 changed files with 30 additions and 14 deletions

View file

@ -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;
};
}