diff --git a/src/utils/rehype.js b/src/utils/rehype.js index 8eb181c..6a625b0 100644 --- a/src/utils/rehype.js +++ b/src/utils/rehype.js @@ -9,6 +9,7 @@ export const ScriptureLinks = () => { let isQuote = false; let isCite = false; let tag = ''; + let rest = ''; const url = node.properties.href; if (node.tagName !== 'a') { return; @@ -17,12 +18,26 @@ export const ScriptureLinks = () => { return; } if (url.indexOf('=') != -1) { - + tag = url.substring(0, url.indexOf('=')); + rest = url.substring(url.indexOf('=')); } else { tag = url.substring(1); } - + switch (tag) { + // Scripture reference. + case 'scripture': + break; + // Quoting Jesus' words. + case 'jesus': + break; + // Bible quote. + case 'quote': + break; + // Source citation. + case 'cite': + break; + } if (!url.startsWith(':scripture')) {