Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: Fall back to plaintext by default and for mermaid
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and mejo- committed Aug 8, 2023
commit 64cfb1e9f41d262efb3980ca21d8d12aaf1dd626
3 changes: 3 additions & 0 deletions src/extensions/RichText.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,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 @@ -88,6 +90,7 @@ export default Extension.create({
Code,
CodeBlock.configure({
lowlight,
defaultLanguage: 'plaintext',
}),
BulletList,
HorizontalRule,
Expand Down