File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- # @beoe/rehype-mermaid
1
+ # @beoe/rehype-plantuml
2
2
3
- Rehype plugin to generate [ Mermaid ] ( https://mermaid.js.org / ) diagrams (as inline SVGs) in place of code fences. This:
3
+ Rehype plugin to generate [ plantuml ] ( https://www.plantuml.com / ) diagrams (as inline SVGs) in place of code fences. This:
4
4
5
5
```` md
6
6
```plantuml
@@ -24,7 +24,7 @@ which can look like this:
24
24
25
25
There are several ways how to run PlantUML
26
26
27
- - with public server e.g. ` https://www.plantuml.com/plantuml/png / `
27
+ - with public server e.g. ` https://www.plantuml.com/plantuml/svg / `
28
28
- for example, see [ remark-simple-plantuml] ( https://github.com/akebifiky/remark-simple-plantuml )
29
29
- with docker
30
30
- install PlantUML locally e.g. install Java, Graphviz and download copy of ` plantuml.jar `
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export const rehypePlantuml: Plugin<[RehypePlantumlConfig?], Root> = (
77
77
return h (
78
78
"figure" ,
79
79
{
80
- class : `beoe mermaid ${ rest . class || "" } ` ,
80
+ class : `beoe plantuml ${ rest . class || "" } ` ,
81
81
} ,
82
82
// wrapp in additional div for svg-pan-zoom
83
83
h ( "img" , {
@@ -90,7 +90,7 @@ export const rehypePlantuml: Plugin<[RehypePlantumlConfig?], Root> = (
90
90
}
91
91
default : {
92
92
const { svg } = await render ( code ) ;
93
- return `<figure class="beoe mermaid ${
93
+ return `<figure class="beoe plantuml ${
94
94
rest . class || ""
95
95
} ">${ svg } </figure>`;
96
96
}
You can’t perform that action at this time.
0 commit comments