remove custom name for lowlight code block

This commit is contained in:
Philipp Kühn 2021-04-02 22:30:12 +02:00
parent 1f2cbc5594
commit 74bd678e8b

View File

@ -13,8 +13,6 @@ export interface CodeBlockLowlightOptions {
}
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
name: 'codeBlockLowlight',
defaultOptions: {
languageClassPrefix: 'language-',
HTMLAttributes: {},
@ -29,7 +27,7 @@ export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
addProseMirrorPlugins() {
return [
LowlightPlugin({ name: 'codeBlockLowlight' }),
LowlightPlugin({ name: 'codeBlock' }),
]
},
})