mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
All: Fix the error caused by undefined isCodeBlock_ (turndown-plugin-gfm) (#11471)
This commit is contained in:
parent
56dce15537
commit
e7583a1ae4
@ -179,7 +179,7 @@ const nodeContains = (node, types) => {
|
|||||||
|
|
||||||
for (let i = 0; i < node.childNodes.length; i++) {
|
for (let i = 0; i < node.childNodes.length; i++) {
|
||||||
const child = node.childNodes[i];
|
const child = node.childNodes[i];
|
||||||
if (types === 'code' && isCodeBlock_(child)) return true;
|
if (types === 'code' && isCodeBlock_ && isCodeBlock_(child)) return true;
|
||||||
if (types.includes(child.nodeName)) return true;
|
if (types.includes(child.nodeName)) return true;
|
||||||
if (nodeContains(child, types)) return true;
|
if (nodeContains(child, types)) return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user