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