diff --git a/src/index.js b/src/index.js index cdc92d8..c9c3b79 100644 --- a/src/index.js +++ b/src/index.js @@ -29,7 +29,8 @@ const relativeLinksRule = { filterTokens(params, "inline", (token) => { const children = token.children ?? [] for (const child of children) { - const { type, attrs, lineNumber } = child + const { type, lineNumber } = child + const attrs = child.attrs ?? [] /** @type {string | undefined} */ let hrefSrc