fix: Allow extending code-block-lowlight (#1917)
Use the extension name when initializing the LowlightPlugin. In this way, several extensions can make use of the same plugin Co-authored-by: Enrique Alcantara <ealcantara@gitlab.com>
This commit is contained in:
committed by
GitHub
parent
071acd643b
commit
54be0e570e
@@ -16,7 +16,7 @@ export const CodeBlockLowlight = CodeBlock.extend<CodeBlockLowlightOptions>({
|
||||
return [
|
||||
...this.parent?.() || [],
|
||||
LowlightPlugin({
|
||||
name: 'codeBlock',
|
||||
name: this.name,
|
||||
lowlight: this.options.lowlight,
|
||||
}),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user