11 lines
257 B
TypeScript
11 lines
257 B
TypeScript
import CodeBlock from '@tiptap/extension-code-block'
|
|
import { LowlightPlugin } from './lowlight-plugin'
|
|
|
|
export const CodeBlockLowlight = CodeBlock.extend({
|
|
addProseMirrorPlugins() {
|
|
return [
|
|
LowlightPlugin({ name: 'codeBlock' }),
|
|
]
|
|
},
|
|
})
|