Skip to content

Instantly share code, notes, and snippets.

@shinokada
Created April 10, 2023 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinokada/4f2f87899c6fcebe5bf5762370199998 to your computer and use it in GitHub Desktop.
Save shinokada/4f2f87899c6fcebe5bf5762370199998 to your computer and use it in GitHub Desktop.

How to add PlantUML to a markdown file

Code:

@startjson
{
   "fruit":"Apple",
   "size":"Large",
   "color": ["Red", "Green"]
}
@endjson

Output:

@startjson
{
   "fruit":"Apple",
   "size":"Large",
   "color": ["Red", "Green"]
}
@endjson

Code:

@startuml
if (condition?) then
  #pink:error;
  kill
endif
#palegreen:action;
@enduml
@startuml
if (condition?) then
  #pink:error;
  kill
endif
#palegreen:action;
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment