add logging

This commit is contained in:
Philipp Kühn
2021-06-03 09:30:41 +02:00
parent 2fd15f521b
commit 7e7af06806

View File

@@ -37,6 +37,12 @@ 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,
})
parseNodes(nodes).forEach(node => {
const to = from + node.text.length