Use this extension to render PlantUML expression. In addition, the extension can render on the fly when editing expressions and give hints of errors.
Custom HTML attributes that should be added to the rendered HTML tag.
Plantuml.configure({
HTMLAttributes: {
class: "my-custom-class",
},
});
If you need to internationalize this extension, you can use this option.
Plantuml.configure({
dictionary: {
name: "PlantUML",
inputHelp: "Help",
inputGraph: "Enter or paste the plantuml code",
},
});
Insert a new PlantUML expression.
editor.commands.setPlantuml("@startuml\nBob -> Alice : hello\n@enduml");
:::plantuml
:::plantuml
@startuml
Bob -> Alice : hello
@enduml
:::