diff --git a/src/helpers/asciidocExtensionRegistered.js b/src/helpers/asciidocExtensionRegistered.js index cc583be4..3374f5b0 100644 --- a/src/helpers/asciidocExtensionRegistered.js +++ b/src/helpers/asciidocExtensionRegistered.js @@ -2,7 +2,7 @@ module.exports = (requireRequest, { data }) => { const { componentVersion } = data.root.page - if (!componentVersion || !componentVersion.asciidoc) return + if (!componentVersion || !componentVersion.asciidoc || !componentVersion.extensions) return const cache = data.extensionCache || (data.extensionCache = {}) let extension if (requireRequest in cache) {