diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-17 11:15:29 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-17 11:15:29 +0800 |
commit | 5cbe9c55eca1b5b0a264414f9a255ea2d019d6e2 (patch) | |
tree | 2f9a740ea30ed741af0f5032876c3adbf8363ddf | |
parent | 4aebafbfd91fa936a8057ec3a392514020132bbf (diff) |
fix: return type of default addBlocks
-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 706e874..b612367 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
@@ -91,7 +91,7 @@ export const markdown2HTML = (container, mdContent) => { | |||
91 | * @param {HTMLElement} root | 91 | * @param {HTMLElement} root |
92 | */ | 92 | */ |
93 | const defaultBlocks = root => { | 93 | const defaultBlocks = root => { |
94 | const articles = root.querySelectorAll('article') | 94 | const articles = Array.from(root.querySelectorAll('article')) |
95 | if (articles.length > 2) return articles | 95 | if (articles.length > 2) return articles |
96 | 96 | ||
97 | const others = Array.from( | 97 | const others = Array.from( |