mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibMarkdown: Implement "tightness" for lists
From the commonmark spec: A list is loose if any of its constituent list items are separated by blank lines, or if any of its constituent list items directly contain two block-level elements with a blank line between them. Otherwise a list is tight. (The difference in HTML output is that paragraphs in a loose list are wrapped in <p> tags, while paragraphs in a tight list are not.)
This commit is contained in:
parent
5bb87c630c
commit
0a21c2bace
Notes:
sideshowbarker
2024-07-18 03:02:20 +09:00
Author: https://github.com/petelliott
Commit: 0a21c2bace
Pull-request: https://github.com/SerenityOS/serenity/pull/10271
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/kleinesfilmroellchen
15 changed files with 75 additions and 28 deletions
|
@ -65,7 +65,7 @@ String Table::render_for_terminal(size_t view_width) const
|
|||
return builder.to_string();
|
||||
}
|
||||
|
||||
String Table::render_to_html() const
|
||||
String Table::render_to_html(bool) const
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue