mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +00:00
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>.
This commit is contained in:
parent
058c8337df
commit
c1efa4f336
Notes:
sideshowbarker
2024-07-19 11:30:00 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c1efa4f3360
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue