Skip to content

Commit

Permalink
Show errors for KaTeX and mermaid on the preview tab (go-gitea#24009) (
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
GiteaBot and silverwind authored Apr 9, 2023
1 parent 695738f commit 2b10eeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web_src/css/markup/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,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;
Expand Down

0 comments on commit 2b10eeb

Please sign in to comment.