Fixed value of undefined.

This commit is contained in:
Benjamin A. Shelton 2026-06-29 20:31:36 -06:00
commit 1f726153e1
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -3,7 +3,7 @@ import { visit } from 'unist-util-visit';
let currentBook = ''; let currentBook = '';
function scriptureLink(node, args) { 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; let passage = (args && args.length > 0 && args[0] != '') ? args[0] : value;
passage = passage.replaceAll(/–/g, '-'); passage = passage.replaceAll(/–/g, '-');