Skip to content

Commit 2b10eeb

Browse files
GiteaBotsilverwind
andauthored
Show errors for KaTeX and mermaid on the preview tab (go-gitea#24009) (go-gitea#24019)
Backport go-gitea#24009 by @silverwind 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"> Co-authored-by: silverwind <me@silverwind.io>
1 parent 695738f commit 2b10eeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web_src/css/markup/content.css

+1
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@
540540
}
541541

542542
.markup-block-error {
543+
display: block !important; /* override fomantic .ui.form .error.message {display: none} */
543544
border: 1px solid var(--color-error-border) !important;
544545
margin-bottom: 0 !important;
545546
border-bottom-left-radius: 0 !important;

0 commit comments

Comments
 (0)