From 7afe94063f7160af085db7b496595681cc06a5a5 Mon Sep 17 00:00:00 2001 From: paulsohier Date: Fri, 18 Sep 2026 11:04:02 +0100 Subject: [PATCH 1/2] Add the text colour palette for rendered Markdown Markdown has no colour. The knowledge base migration (phpbb-website-private#19) keeps the colours authors picked on the forum as and friends, mapped to a small palette. The website's Markdown renderer lets exactly these classes through (App\Markdown\TextColours). This gives them their colours inside .markdown-body. Co-Authored-By: Claude Opus 5 --- css/markdown-editor.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/css/markdown-editor.css b/css/markdown-editor.css index 35f5f57..3bdf66f 100644 --- a/css/markdown-editor.css +++ b/css/markdown-editor.css @@ -210,3 +210,17 @@ .markdown-body { overflow-wrap: break-word; } + +/* + * Text colour. Markdown has none, so migrated content keeps the colours + * authors picked on the forum as , mapped to this + * palette. The website renders only these classes (App\Markdown\TextColours + * lists the same colours); keep the two in step. + */ +.markdown-body .text-red { color: #bf0000; } +.markdown-body .text-darkred { color: #800000; } +.markdown-body .text-orange { color: #dd6900; } +.markdown-body .text-green { color: #008000; } +.markdown-body .text-blue { color: #0040bf; } +.markdown-body .text-navy { color: #000080; } +.markdown-body .text-purple { color: #800080; } From 2486c3761360e7c69aab2768727ae11e8f16acc9 Mon Sep 17 00:00:00 2001 From: paulsohier Date: Fri, 18 Sep 2026 11:07:53 +0100 Subject: [PATCH 2/2] Add the underline class for rendered Markdown Markdown has no underline either. Migrated [u] text keeps it as , which the website's renderer lets through alongside the colour classes (App\Markdown\TextStyles). Co-Authored-By: Claude Opus 5 --- css/markdown-editor.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/css/markdown-editor.css b/css/markdown-editor.css index 3bdf66f..b2d35f6 100644 --- a/css/markdown-editor.css +++ b/css/markdown-editor.css @@ -224,3 +224,6 @@ .markdown-body .text-blue { color: #0040bf; } .markdown-body .text-navy { color: #000080; } .markdown-body .text-purple { color: #800080; } + +/* Underline, which Markdown lacks as well (App\Markdown\TextStyles). */ +.markdown-body .text-underline { text-decoration: underline; }