summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibMarkdown/CodeBlock.cpp
diff options
context:
space:
mode:
authorPeter Elliott <pelliott@ualberta.ca>2021-09-28 01:12:00 -0600
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-10-05 13:27:25 +0330
commit0a21c2bace9797f835718bf4ea45fb09a5a2297a (patch)
treea2056944cefc95c1753e08b542e205ffc8fe77d5 /Userland/Libraries/LibMarkdown/CodeBlock.cpp
parent5bb87c630c5599309f29977512d7719ff6cae2eb (diff)
downloadserenity-0a21c2bace9797f835718bf4ea45fb09a5a2297a.zip
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.)
Diffstat (limited to 'Userland/Libraries/LibMarkdown/CodeBlock.cpp')
-rw-r--r--Userland/Libraries/LibMarkdown/CodeBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibMarkdown/CodeBlock.cpp b/Userland/Libraries/LibMarkdown/CodeBlock.cpp
index e3e946dba0..d433d3c61e 100644
--- a/Userland/Libraries/LibMarkdown/CodeBlock.cpp
+++ b/Userland/Libraries/LibMarkdown/CodeBlock.cpp
@@ -11,7 +11,7 @@
namespace Markdown {
-String CodeBlock::render_to_html() const
+String CodeBlock::render_to_html(bool) const
{
StringBuilder builder;