mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibMarkdown: Replace inline styles in HTML with CSS in <head>
This commit is contained in:
committed by
Andreas Kling
parent
e5ec4d35ea
commit
10c19d5207
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user