Declare lowlight as a peerDependency (#2625)

Declare lowlight as a peerDependency to delegate
the control of which version of lowlight is used
to the client application

Co-authored-by: Enrique Alcantara <ealcantara@gitlab.com>
This commit is contained in:
Enrique Alcántara
2022-06-06 13:33:52 -04:00
committed by GitHub
parent fd593bb93e
commit 39f5e4c31e
7 changed files with 39 additions and 12 deletions

View File

@@ -25,10 +25,10 @@ describe('code block highlight', () => {
beforeEach(() => {
Frontmatter = CodeBlockLowlight
.configure({ lowlight })
.extend({
name: 'frontmatter',
})
.configure({ lowlight })
editor = new Editor({
element: createEditorEl(),
@@ -36,7 +36,7 @@ describe('code block highlight', () => {
Document,
Text,
Paragraph,
CodeBlockLowlight,
CodeBlockLowlight.configure({ lowlight }),
Frontmatter,
],
content: {