diff --git a/src/utils/rehype.js b/src/utils/rehype.js index f5c4891..8eb181c 100644 --- a/src/utils/rehype.js +++ b/src/utils/rehype.js @@ -8,10 +8,23 @@ export const ScriptureLinks = () => { let passage = ''; let isQuote = false; let isCite = false; + let tag = ''; const url = node.properties.href; if (node.tagName !== 'a') { return; } + if (!url.startsWith(':')) { + return; + } + if (url.indexOf('=') != -1) { + + } else { + tag = url.substring(1); + } + + + + if (!url.startsWith(':scripture')) { return; }