remove custom name for lowlight code block
This commit is contained in:
@@ -13,8 +13,6 @@ export interface CodeBlockLowlightOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
|
export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
|
||||||
name: 'codeBlockLowlight',
|
|
||||||
|
|
||||||
defaultOptions: {
|
defaultOptions: {
|
||||||
languageClassPrefix: 'language-',
|
languageClassPrefix: 'language-',
|
||||||
HTMLAttributes: {},
|
HTMLAttributes: {},
|
||||||
@@ -29,7 +27,7 @@ export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
|
|||||||
|
|
||||||
addProseMirrorPlugins() {
|
addProseMirrorPlugins() {
|
||||||
return [
|
return [
|
||||||
LowlightPlugin({ name: 'codeBlockLowlight' }),
|
LowlightPlugin({ name: 'codeBlock' }),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user