-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plantuml not rendering in Readme only in Issues and Wiki #19110
Comments
We should probably remove |
Yeah I suspect we should just drop the RequireHighlightJS things from our templates. @lukaskwkw you should be fine to just remove the requirement on the RequireHighlightJS from your pages - an alternative option might be to also detect IsMarkup in addition to RequireHightlightJs and perhaps we should migrate all places that use RequireHighlightJS to IsMarkup instead. |
Looks like |
|
I think JS should just execute |
@silverwind do you want to propose a documentation update PR? |
Yes, once I figure out something that works. |
@lukaskwkw try this one (the example works for 1.16.x) And please help to report or fix potential problems in it. |
Since it's a break change, maybe we don't need to back port to v1.16 |
Gitea Version
1.16.4
Git Version
2.30.2
Operating System
Windows 11
How are you running Gitea?
Docker image
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
PlantUML rendering is only working in Issues & Wiki. Not in README.md files.
I.e. using code in README.md
```plantuml
@startuml
Bob -> Alice : hello
@enduml
```
will generate
<code>
block withlanguage-plantuml
class but won't render any content in if bodyI was able to workaround this by adding
PageIsViewCode
condition into if statement from docs example:https://docs.gitea.io/en-us/customizing-gitea/#example-plantuml
It might be similar to #12307
Screenshots
with single
RequireHighlightJS
conditionwith addtional
PageIsViewCode
conditionThe text was updated successfully, but these errors were encountered: