Skip to content

Commit 3570677

Browse files
committed
fix: missing pathname
1 parent dd6b2ec commit 3570677

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/process-inner-links.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module.exports = ({ content, name }, _, arr) => {
3333
.filter(({ title }) => !title || !title.startsWith(':include'))
3434
.map(({ href }) => ({ href, parsed: url.parse(href) }))
3535
.filter(({ parsed }) => {
36+
if (!parsed.pathname) return false
3637
const ext = path.parse(parsed.pathname).ext
3738
return ext === '' || ext === '.md'
3839
})

0 commit comments

Comments
 (0)