Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support PlantUML #180

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ Features

![Mermaid.js graphs](screenshots/graph.png)

### Creating diagrams using a simple, intuitive language [plantuml](https://github.com/plantuml/plantuml)

![plantuml diagrams](screenshots/plantuml.png)

### Fully rendered previews in the sidebar

![Sidebar previews](screenshots/preview.png)
Expand Down
2 changes: 2 additions & 0 deletions js/Renderer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import MarkdownIt from 'markdown-it';
import MarkdownItPlantUML from "markdown-it-plantuml";
import Token from 'markdown-it/lib/token';
import iterator from 'markdown-it-for-inline';
import {CheckboxPlugin} from './CheckboxPlugin';
Expand Down Expand Up @@ -65,6 +66,7 @@ export class Renderer {
this.md = new MarkdownIt({
linkify: true
});
this.md.use(MarkdownItPlantUML);
this.md.use(CheckboxPlugin, {
checkboxClass: 'checkbox',
readonly: readonly
Expand Down
Loading