fix: lowlight imports for v3
This commit is contained in:
parent
e1f78462e5
commit
a61e2d064d
|
|
@ -167,7 +167,7 @@ import {Node} from '@tiptap/pm/model'
|
|||
import Commands from './commands'
|
||||
import suggestionSetup from './suggestion'
|
||||
|
||||
import {lowlight} from 'lowlight'
|
||||
import {common, createLowlight} from 'lowlight'
|
||||
|
||||
import type {BottomAction, UploadCallback} from './types'
|
||||
import type {ITask} from '@/modelTypes/ITask'
|
||||
|
|
@ -343,7 +343,7 @@ const extensions : Extensions = [
|
|||
}),
|
||||
|
||||
CodeBlockLowlight.configure({
|
||||
lowlight,
|
||||
lowlight: createLowlight(common),
|
||||
}),
|
||||
HardBreak.extend({
|
||||
addKeyboardShortcuts() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue