mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09: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:
parent
5fbec2b003
commit
aa65f664a9
Notes:
sideshowbarker
2024-07-19 02:09:47 +09:00
Author: https://github.com/alimpfard
Commit: aa65f664a9
Pull-request: https://github.com/SerenityOS/serenity/pull/3562
Reviewed-by: https://github.com/bugaevc
12 changed files with 30 additions and 14 deletions
|
@ -74,7 +74,7 @@ String CodeBlock::render_to_html() const
|
|||
return builder.build();
|
||||
}
|
||||
|
||||
String CodeBlock::render_for_terminal() const
|
||||
String CodeBlock::render_for_terminal(size_t) const
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue