Skip to content

Commit

Permalink
Plantuml svg loader (#800)
Browse files Browse the repository at this point in the history
* 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 <e.bovendeur@faceit.nl>
Co-authored-by: LisaFC <lcarey@google.com>
  • Loading branch information
3 people committed Jan 24, 2022
1 parent 0d033fa commit 3e2cfeb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
11 changes: 10 additions & 1 deletion assets/js/plantuml.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/vendor/bootstrap
Submodule bootstrap updated 176 files
1 change: 1 addition & 0 deletions userguide/config.toml
Expand Up @@ -219,6 +219,7 @@ theme = "default"
enable = true
theme = "default"
svg_image_url = "https://www.plantuml.com/plantuml/svg/"
svg = false

[params.katex]
enable = true
Expand Down
Expand Up @@ -211,7 +211,7 @@ entity entity as Foo4
database database as Foo5
collections collections as Foo6
queue queue as Foo7
Foo -> Foo1 : To actor
Foo -> Foo1 : To actor
Foo -> Foo2 : To boundary
Foo -> Foo3 : To control
Foo -> Foo4 : To entity
Expand All @@ -232,7 +232,7 @@ entity entity as Foo4
database database as Foo5
collections collections as Foo6
queue queue as Foo7
Foo -> Foo1 : To actor
Foo -> Foo1 : To actor
Foo -> Foo2 : To boundary
Foo -> Foo3 : To control
Foo -> Foo4 : To entity
Expand All @@ -254,10 +254,14 @@ Other optional settings are:
enable = true
theme = "default"
#Set url to plantuml server
#Set url to plantuml server
#default is http://www.plantuml.com/plantuml/svg/
svg_image_url = "https://www.plantuml.com/plantuml/svg/"
#By default the plantuml implementation uses <img /> tags to display UML diagrams.
#When svg is set to true, diagrams are displayed using <svg /> tags, maintaining functionality like links e.d.
#default = false
svg = true
```

## MindMap support with MarkMap
Expand Down

0 comments on commit 3e2cfeb

Please sign in to comment.