Skip to content

Commit 3e2cfeb

Browse files
erwin-faceitr-winLisaFC
authored
Plantuml svg loader (#800)
* Use svg-loader instead of img tag to preserve interactive diagrams * Configure img vs svg tag * Updated usage documentation and added default to config.toml Co-authored-by: Erwin Bovendeur <[email protected]> Co-authored-by: LisaFC <[email protected]>
1 parent 0d033fa commit 3e2cfeb

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

assets/js/plantuml.js

+10-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/vendor/bootstrap

Submodule bootstrap updated 176 files

userguide/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ theme = "default"
219219
enable = true
220220
theme = "default"
221221
svg_image_url = "https://www.plantuml.com/plantuml/svg/"
222+
svg = false
222223

223224
[params.katex]
224225
enable = true

userguide/content/en/docs/Adding content/diagrams-and-formulae/index.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ entity entity as Foo4
211211
database database as Foo5
212212
collections collections as Foo6
213213
queue queue as Foo7
214-
Foo -> Foo1 : To actor
214+
Foo -> Foo1 : To actor
215215
Foo -> Foo2 : To boundary
216216
Foo -> Foo3 : To control
217217
Foo -> Foo4 : To entity
@@ -232,7 +232,7 @@ entity entity as Foo4
232232
database database as Foo5
233233
collections collections as Foo6
234234
queue queue as Foo7
235-
Foo -> Foo1 : To actor
235+
Foo -> Foo1 : To actor
236236
Foo -> Foo2 : To boundary
237237
Foo -> Foo3 : To control
238238
Foo -> Foo4 : To entity
@@ -254,10 +254,14 @@ Other optional settings are:
254254
enable = true
255255
theme = "default"
256256
257-
#Set url to plantuml server
257+
#Set url to plantuml server
258258
#default is http://www.plantuml.com/plantuml/svg/
259259
svg_image_url = "https://www.plantuml.com/plantuml/svg/"
260260
261+
#By default the plantuml implementation uses <img /> tags to display UML diagrams.
262+
#When svg is set to true, diagrams are displayed using <svg /> tags, maintaining functionality like links e.d.
263+
#default = false
264+
svg = true
261265
```
262266

263267
## MindMap support with MarkMap

0 commit comments

Comments
 (0)