Skip to content

Commit

Permalink
fix: Fall back to plaintext by default and for mermaid
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Aug 2, 2023
1 parent cb86eb9 commit c19dc60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/extensions/RichText.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',

Expand Down Expand Up @@ -89,6 +91,7 @@ export default Extension.create({
Code,
CodeBlock.configure({
lowlight,
defaultLanguage: 'plaintext',
}),
BulletList,
HorizontalRule,
Expand Down

0 comments on commit c19dc60

Please sign in to comment.