diff options
-rw-r--r-- | src/util/html.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/util/html.js b/src/util/html.js index 6e892031..594966ed 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -217,9 +217,17 @@ export function isBlank(content) { // could include content. These need to be checked too. // Check each of the templates one at a time. for (const template of result) { - if (!template.blank) { - return false; + const content = template.content; + + if (content instanceof Tag && content.onlyIfSiblings) { + continue; + } + + if (isBlank(content)) { + continue; } + + return false; } // If none of the templates included content either, |