summaryrefslogtreecommitdiff
path: root/Libraries/LibMarkdown/MDDocument.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-29 21:35:28 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-10-30 20:28:44 +0100
commitc1efa4f3360afc4e20254238b284b66ef8a361b0 (patch)
tree18a6f69eba5321249397c1b51a55f99ba260bb75 /Libraries/LibMarkdown/MDDocument.cpp
parent058c8337df99d32b71384981362c1a3658e93673 (diff)
downloadserenity-c1efa4f3360afc4e20254238b284b66ef8a361b0.zip
LibMarkdown: Include a <head> element when rendering MD to HTML
This should really be handled by LibHTML, but just include a <head> element for now, so generated man pages always have a <head>.
Diffstat (limited to 'Libraries/LibMarkdown/MDDocument.cpp')
-rw-r--r--Libraries/LibMarkdown/MDDocument.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibMarkdown/MDDocument.cpp b/Libraries/LibMarkdown/MDDocument.cpp
index 69d4de9905..539ad8f70d 100644
--- a/Libraries/LibMarkdown/MDDocument.cpp
+++ b/Libraries/LibMarkdown/MDDocument.cpp
@@ -11,6 +11,7 @@ String MDDocument::render_to_html() const
builder.append("<!DOCTYPE html>\n");
builder.append("<html>\n");
+ builder.append("<head></head>\n");
builder.append("<body>\n");
for (auto& block : m_blocks) {