diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-29 21:35:28 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-30 20:28:44 +0100 |
commit | c1efa4f3360afc4e20254238b284b66ef8a361b0 (patch) | |
tree | 18a6f69eba5321249397c1b51a55f99ba260bb75 /Libraries/LibMarkdown/MDDocument.cpp | |
parent | 058c8337df99d32b71384981362c1a3658e93673 (diff) | |
download | serenity-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.cpp | 1 |
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) { |