mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-11 20:23:36 +08:00
fix: Remove console.log statement (#2168)
Co-authored-by: Enrique Alcantara <ealcantara@gitlab.com>
This commit is contained in:
parent
c9dc1e1ec3
commit
6e25e99c7a
@ -42,7 +42,6 @@ function getDecorations({
|
|||||||
.forEach(block => {
|
.forEach(block => {
|
||||||
let from = block.pos + 1
|
let from = block.pos + 1
|
||||||
const language = block.node.attrs.language || defaultLanguage
|
const language = block.node.attrs.language || defaultLanguage
|
||||||
console.log({ language, defaultLanguage })
|
|
||||||
const languages = lowlight.listLanguages()
|
const languages = lowlight.listLanguages()
|
||||||
const nodes = language && languages.includes(language)
|
const nodes = language && languages.includes(language)
|
||||||
? getHighlightNodes(lowlight.highlight(language, block.node.textContent))
|
? getHighlightNodes(lowlight.highlight(language, block.node.textContent))
|
||||||
|
Loading…
Reference in New Issue
Block a user