diff --git a/src/utils/rehype.js b/src/utils/rehype.js index dc2ff20..28a74a2 100644 --- a/src/utils/rehype.js +++ b/src/utils/rehype.js @@ -3,7 +3,7 @@ import { visit } from 'unist-util-visit'; let currentBook = ''; function scriptureLink(node, args) { - const value = node.children?.[0]?.value.trim() || ''; + const value = node.children?.[0]?.value?.trim() || ''; let passage = (args && args.length > 0 && args[0] != '') ? args[0] : value; passage = passage.replaceAll(/–/g, '-');