mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
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:
committed by
Andreas Kling
parent
5fbec2b003
commit
aa65f664a9
@@ -38,7 +38,7 @@ String Paragraph::render_to_html() const
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
String Paragraph::render_for_terminal() const
|
||||
String Paragraph::render_for_terminal(size_t) const
|
||||
{
|
||||
StringBuilder builder;
|
||||
builder.append(m_text.render_for_terminal());
|
||||
|
||||
Reference in New Issue
Block a user