diff --git a/src/complexitywiki_plugins.js b/src/complexitywiki_plugins.js index e7fc68abc1dbfe64ed61f77a3d9a27ee1ebc7076..09e91e78d26e75efacd4017250ec8aede5f4d1ff 100644 --- a/src/complexitywiki_plugins.js +++ b/src/complexitywiki_plugins.js @@ -6,6 +6,7 @@ import { } from 'ckeditor5/src/ui'; import Code from '@ckeditor/ckeditor5-basic-styles/src/code'; +import Markdown from '@ckeditor/ckeditor5-markdown-gfm/src/markdown.js'; import displayIcon from '../theme/icons/display.svg'; import inlineIcon from '../theme/icons/inline.svg'; @@ -16,7 +17,9 @@ export default class ComplexitywikiPlugins extends Plugin { } static get requires() { - return [ Code ]; + // Require code for correct treatment of the `code` text attribute and + // Markdown so that the output is understandable to the CaosDB wiki app. + return [ Code, Markdown ]; } init() {