diff options
Diffstat (limited to 'src/dumbymap.mjs')
-rw-r--r-- | src/dumbymap.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index a7b0394..3c3b172 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
@@ -92,7 +92,7 @@ export const markdown2HTML = (container, mdContent) => { | |||
92 | */ | 92 | */ |
93 | const defaultBlocks = root => { | 93 | const defaultBlocks = root => { |
94 | const articles = Array.from(root.querySelectorAll('article')) | 94 | const articles = Array.from(root.querySelectorAll('article')) |
95 | if (articles.length > 2) return articles | 95 | if (articles.length > 0) return articles |
96 | 96 | ||
97 | const others = Array.from( | 97 | const others = Array.from( |
98 | root.querySelectorAll(':has(>p, >blockquote, >pre, >ul, >ol, >table, >details)'), | 98 | root.querySelectorAll(':has(>p, >blockquote, >pre, >ul, >ol, >table, >details)'), |