From c949fb6c7f5dc8080343838ea38b00e3c1113ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 3 Jun 2021 09:59:03 +0200 Subject: [PATCH] remove log --- docs/src/demos/Nodes/CodeBlockLowlight/index.vue | 2 +- .../src/lowlight-plugin.ts | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/docs/src/demos/Nodes/CodeBlockLowlight/index.vue b/docs/src/demos/Nodes/CodeBlockLowlight/index.vue index a97e9031..cea49657 100644 --- a/docs/src/demos/Nodes/CodeBlockLowlight/index.vue +++ b/docs/src/demos/Nodes/CodeBlockLowlight/index.vue @@ -16,7 +16,7 @@ import Text from '@tiptap/extension-text' import CodeBlockLowlight from '@tiptap/extension-code-block-lowlight' // load all highlight.js languages -import { lowlight } from 'lowlight/lib/all' +import { lowlight } from 'lowlight' // load specific languages only // import { lowlight } from 'lowlight/lib/core' diff --git a/packages/extension-code-block-lowlight/src/lowlight-plugin.ts b/packages/extension-code-block-lowlight/src/lowlight-plugin.ts index a9cee746..060e352d 100644 --- a/packages/extension-code-block-lowlight/src/lowlight-plugin.ts +++ b/packages/extension-code-block-lowlight/src/lowlight-plugin.ts @@ -38,17 +38,6 @@ function getDecorations({ doc, name, lowlight }: { doc: ProsemirrorNode, name: s ? lowlight.highlight(language, 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 => { const to = from + node.text.length