1
0
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:
Manabu Nakazawa 2024-12-10 01:57:33 +10:00 committed by GitHub
parent 56dce15537
commit e7583a1ae4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
} }