Skip to content

Commit 6aa6a54

Browse files
committedNov 18, 2024
fixes for plantuml
1 parent 890e09e commit 6aa6a54

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎packages/rehype-plantuml/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# @beoe/rehype-mermaid
1+
# @beoe/rehype-plantuml
22

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:
44

55
````md
66
```plantuml
@@ -24,7 +24,7 @@ which can look like this:
2424

2525
There are several ways how to run PlantUML
2626

27-
- with public server e.g. `https://www.plantuml.com/plantuml/png/`
27+
- with public server e.g. `https://www.plantuml.com/plantuml/svg/`
2828
- for example, see [remark-simple-plantuml](https://github.com/akebifiky/remark-simple-plantuml)
2929
- with docker
3030
- install PlantUML locally e.g. install Java, Graphviz and download copy of `plantuml.jar`

‎packages/rehype-plantuml/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const rehypePlantuml: Plugin<[RehypePlantumlConfig?], Root> = (
7777
return h(
7878
"figure",
7979
{
80-
class: `beoe mermaid ${rest.class || ""}`,
80+
class: `beoe plantuml ${rest.class || ""}`,
8181
},
8282
// wrapp in additional div for svg-pan-zoom
8383
h("img", {
@@ -90,7 +90,7 @@ export const rehypePlantuml: Plugin<[RehypePlantumlConfig?], Root> = (
9090
}
9191
default: {
9292
const { svg } = await render(code);
93-
return `<figure class="beoe mermaid ${
93+
return `<figure class="beoe plantuml ${
9494
rest.class || ""
9595
}">${svg}</figure>`;
9696
}

0 commit comments

Comments
 (0)