From 1f726153e171e1450bcd733b088ae6abe6a8a282 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 29 Jun 2026 20:31:36 -0600 Subject: [PATCH] Fixed value of undefined. --- src/utils/rehype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '-');