From f2b98d825978670f365bb754e65f44124ce4e658 Mon Sep 17 00:00:00 2001
From: silverwind <me@silverwind.io>
Date: Sun, 9 Apr 2023 14:07:43 +0200
Subject: [PATCH] Show errors for KaTeX and mermaid on the preview tab (#24009)

There is a conflicting fomantic rule that hid the error messages inside
the markdown preview tab for things like mermaid or katex.
Overruled it to always show these errors.

<img width="774" alt="image"
src="https://user-images.githubusercontent.com/115237/230738528-322814c1-8994-495e-b901-bbb79b924ccb.png">
---
 web_src/css/markup/content.css | 1 +
 1 file changed, 1 insertion(+)

diff --git a/web_src/css/markup/content.css b/web_src/css/markup/content.css
index 049121e24c..90f8c7091e 100644
--- a/web_src/css/markup/content.css
+++ b/web_src/css/markup/content.css
@@ -541,6 +541,7 @@
 }
 
 .markup-block-error {
+  display: block !important; /* override fomantic .ui.form .error.message {display: none} */
   border: 1px solid var(--color-error-border) !important;
   margin-bottom: 0 !important;
   border-bottom-left-radius: 0 !important;