mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +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++) {
|
||||
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 (nodeContains(child, types)) return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user