Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 939 Bytes

plantuml.md

File metadata and controls

57 lines (41 loc) · 939 Bytes

PlantUML extension

Use this extension to render PlantUML expression. In addition, the extension can render on the fly when editing expressions and give hints of errors.

Options

HTMLAttributes

Custom HTML attributes that should be added to the rendered HTML tag.

Plantuml.configure({
  HTMLAttributes: {
    class: "my-custom-class",
  },
});

dictionary

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",
  },
});

Commands

setPlantuml()

Insert a new PlantUML expression.

editor.commands.setPlantuml("@startuml\nBob -> Alice : hello\n@enduml");

InputRules

:::plantuml

Markdown

:::plantuml
@startuml
Bob -> Alice : hello
@enduml
:::