mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-18 04:37:51 +01:00
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
|
|
diff --git a/node_modules/html-to-text/lib/html-to-text.cjs b/node_modules/html-to-text/lib/html-to-text.cjs
|
||
|
|
index 6bcef9d..99203a1 100644
|
||
|
|
--- a/node_modules/html-to-text/lib/html-to-text.cjs
|
||
|
|
+++ b/node_modules/html-to-text/lib/html-to-text.cjs
|
||
|
|
@@ -1240,6 +1240,7 @@ function recursiveWalk (walk, dom, builder) {
|
||
|
|
case 'tag': {
|
||
|
|
const tagDefinition = builder.picker.pick1(elem);
|
||
|
|
const format = options.formatters[tagDefinition.format];
|
||
|
|
+ if (!format) continue;
|
||
|
|
format(elem, walk, builder, tagDefinition.options || {});
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
diff --git a/node_modules/html-to-text/lib/html-to-text.mjs b/node_modules/html-to-text/lib/html-to-text.mjs
|
||
|
|
index e42ff85..6659bbc 100644
|
||
|
|
--- a/node_modules/html-to-text/lib/html-to-text.mjs
|
||
|
|
+++ b/node_modules/html-to-text/lib/html-to-text.mjs
|
||
|
|
@@ -1232,6 +1232,7 @@ function recursiveWalk (walk, dom, builder) {
|
||
|
|
case 'tag': {
|
||
|
|
const tagDefinition = builder.picker.pick1(elem);
|
||
|
|
const format = options.formatters[tagDefinition.format];
|
||
|
|
+ if (!format) continue;
|
||
|
|
format(elem, walk, builder, tagDefinition.options || {});
|
||
|
|
break;
|
||
|
|
}
|