From c3613fab29dfab226af390fee676f025ec42fe27 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 28 Jun 2026 16:45:50 -0600 Subject: [PATCH] Initial rework of parser. --- src/utils/rehype.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; }