remove log
This commit is contained in:
@@ -16,7 +16,7 @@ import Text from '@tiptap/extension-text'
|
|||||||
import CodeBlockLowlight from '@tiptap/extension-code-block-lowlight'
|
import CodeBlockLowlight from '@tiptap/extension-code-block-lowlight'
|
||||||
|
|
||||||
// load all highlight.js languages
|
// load all highlight.js languages
|
||||||
import { lowlight } from 'lowlight/lib/all'
|
import { lowlight } from 'lowlight'
|
||||||
|
|
||||||
// load specific languages only
|
// load specific languages only
|
||||||
// import { lowlight } from 'lowlight/lib/core'
|
// import { lowlight } from 'lowlight/lib/core'
|
||||||
|
|||||||
@@ -38,17 +38,6 @@ function getDecorations({ doc, name, lowlight }: { doc: ProsemirrorNode, name: s
|
|||||||
? lowlight.highlight(language, block.node.textContent).children
|
? lowlight.highlight(language, block.node.textContent).children
|
||||||
: lowlight.highlightAuto(block.node.textContent).children
|
: lowlight.highlightAuto(block.node.textContent).children
|
||||||
|
|
||||||
console.log({
|
|
||||||
lowlight,
|
|
||||||
languages,
|
|
||||||
nodes,
|
|
||||||
})
|
|
||||||
|
|
||||||
console.log({
|
|
||||||
lowlightAll,
|
|
||||||
languages: lowlightAll.listLanguages(),
|
|
||||||
})
|
|
||||||
|
|
||||||
parseNodes(nodes).forEach(node => {
|
parseNodes(nodes).forEach(node => {
|
||||||
const to = from + node.text.length
|
const to = from + node.text.length
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user