Set class

This commit is contained in:
Benjamin A. Shelton 2026-06-11 00:02:58 -06:00
commit 93017d4264
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -23,7 +23,6 @@ export const ScriptureLinks = () => {
passage = arg; passage = arg;
} }
} }
console.log('specified scripture');
} else { } else {
passage = node.children?.[0]?.value.trim() || ''; passage = node.children?.[0]?.value.trim() || '';
} }
@ -40,11 +39,10 @@ export const ScriptureLinks = () => {
passage = passage.replace(/\:/, '%3A'); passage = passage.replace(/\:/, '%3A');
node.properties.href = `https://www.biblegateway.com/passage/?search=${passage}&version=ESV`; node.properties.href = `https://www.biblegateway.com/passage/?search=${passage}&version=ESV`;
console.log('match:', match); node.properties.class = 'scripture';
if (match) { if (match) {
console.log(match);
currentBook = match?.[1].trim(); currentBook = match?.[1].trim();
console.log(currentBook);
} }
}); });
} }