diff options
Diffstat (limited to 'Libraries/LibMarkdown/Document.cpp')
-rw-r--r-- | Libraries/LibMarkdown/Document.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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("<!DOCTYPE html>\n"); builder.append("<html>\n"); - builder.append("<head></head>\n"); + builder.append("<head>\n"); + builder.append("<style>\n"); + builder.append("code { white-space: pre; }\n"); + builder.append("</style>\n"); + builder.append("</head>\n"); builder.append("<body>\n"); for (auto& block : m_blocks) { |