Initial rework of parser.

This commit is contained in:
Benjamin A. Shelton 2026-06-28 16:45:50 -06:00
commit c3613fab29
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -8,10 +8,23 @@ export const ScriptureLinks = () => {
let passage = ''; let passage = '';
let isQuote = false; let isQuote = false;
let isCite = false; let isCite = false;
let tag = '';
const url = node.properties.href; const url = node.properties.href;
if (node.tagName !== 'a') { if (node.tagName !== 'a') {
return; return;
} }
if (!url.startsWith(':')) {
return;
}
if (url.indexOf('=') != -1) {
} else {
tag = url.substring(1);
}
if (!url.startsWith(':scripture')) { if (!url.startsWith(':scripture')) {
return; return;
} }