Skip to content

Commit

Permalink
Render UML on 'regular', non-editor pages as well #59
Browse files Browse the repository at this point in the history
  • Loading branch information
pczora committed May 28, 2018
1 parent cf54bc9 commit bf2fd6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/js/wiki/components/Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import React from 'react';
import injectSheet from 'react-jss';

import Viewer from 'tui-editor/dist/tui-editor-Viewer';
import Editor from 'tui-editor/dist/tui-editor-Editor';
import 'tui-editor/dist/tui-editor-extTable';
import 'tui-editor/dist/tui-editor-extScrollSync';
Expand All @@ -29,7 +28,7 @@ class Markdown extends React.Component<Props> {
viewer: true,
initialEditType: 'markdown',
initialValue: this.props.content,
exts: ['colorSyntax', 'uml', 'chart', 'mark', 'table', 'taskCounter', 'history'],
exts: ['colorSyntax', {name: 'uml', rendererURL: '/plantuml/png/'}, 'chart', 'mark', 'table', 'taskCounter', 'history'],
});
}

Expand Down

0 comments on commit bf2fd6c

Please sign in to comment.