diff --git a/Libraries/LibMarkdown/CodeBlock.cpp b/Libraries/LibMarkdown/CodeBlock.cpp index b6501ad03c..dce8a19d67 100644 --- a/Libraries/LibMarkdown/CodeBlock.cpp +++ b/Libraries/LibMarkdown/CodeBlock.cpp @@ -55,10 +55,10 @@ String CodeBlock::render_to_html() const if (style.emph) builder.append(""); - if (style_language.is_null()) - builder.append(""); + if (style_language.is_empty()) + builder.append(""); else - builder.appendf("", style_language.characters()); + builder.appendff("", style_language); builder.append(escape_html_entities(m_code)); diff --git a/Libraries/LibMarkdown/Document.cpp b/Libraries/LibMarkdown/Document.cpp index 2bd283c920..f418923701 100644 --- a/Libraries/LibMarkdown/Document.cpp +++ b/Libraries/LibMarkdown/Document.cpp @@ -40,7 +40,11 @@ String Document::render_to_html() const builder.append("\n"); builder.append("\n"); - builder.append("\n"); + builder.append("\n"); + builder.append("\n"); + builder.append("\n"); builder.append("\n"); for (auto& block : m_blocks) {