diff --git a/src/extensions/RichText.js b/src/extensions/RichText.js index 499f32abd0d..b745e5dac0a 100644 --- a/src/extensions/RichText.js +++ b/src/extensions/RichText.js @@ -60,6 +60,8 @@ import TrailingNode from './../nodes/TrailingNode.js' import { Strong, Italic, Strike, Link, Underline } from './../marks/index.js' import { translate as t } from '@nextcloud/l10n' +lowlight.registerAlias('plaintext', 'mermaid') + export default Extension.create({ name: 'RichText', @@ -89,6 +91,7 @@ export default Extension.create({ Code, CodeBlock.configure({ lowlight, + defaultLanguage: 'plaintext', }), BulletList, HorizontalRule,