Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/store/modules/PlantumlEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const state: any = {
plantuml: 'plantuml',
server: process.env.VUE_APP_SERVER,
cdn: process.env.VUE_APP_CDN,
startuml: ['@startuml', '@startmindmap', '@startditaa', '@startgantt', '@startwbs'],
enduml: ['@enduml', '@endmindmap', '@endditaa', '@endgantt', '@endwbs'],
startuml: ['@startuml', '@startmindmap', '@startditaa', '@startgantt', '@startwbs', '@startjson', 'startsalt'],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think startsalt also needs a @ in the beginning.
In this case it would be '@startsalt'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@startyaml, @startmath and @startlatex and and their respective end token are also missing.

References:

As an alternative to manually maintaining all start and end tokens, one might also consider accepting everything with @start and @end.

enduml: ['@enduml', '@endmindmap', '@endditaa', '@endgantt', '@endwbs', '@endjson', '@endsalt'],
defaultText:
'# PlantUML Editor\n\n1. select template\n2. write uml diagram\n\n@startuml\n\nleft to right direction\n\nactor User\n\nUser --> (1. select template)\nUser --> (2. write uml diagram)\n\n@enduml',
text: '',
Expand Down