Set class
This commit is contained in:
parent
ec9da44da8
commit
93017d4264
1 changed files with 2 additions and 4 deletions
|
|
@ -23,7 +23,6 @@ export const ScriptureLinks = () => {
|
||||||
passage = arg;
|
passage = arg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('specified scripture');
|
|
||||||
} else {
|
} else {
|
||||||
passage = node.children?.[0]?.value.trim() || '';
|
passage = node.children?.[0]?.value.trim() || '';
|
||||||
}
|
}
|
||||||
|
|
@ -40,11 +39,10 @@ export const ScriptureLinks = () => {
|
||||||
passage = passage.replace(/\:/, '%3A');
|
passage = passage.replace(/\:/, '%3A');
|
||||||
node.properties.href = `https://www.biblegateway.com/passage/?search=${passage}&version=ESV`;
|
node.properties.href = `https://www.biblegateway.com/passage/?search=${passage}&version=ESV`;
|
||||||
|
|
||||||
console.log('match:', match);
|
node.properties.class = 'scripture';
|
||||||
|
|
||||||
if (match) {
|
if (match) {
|
||||||
console.log(match);
|
|
||||||
currentBook = match?.[1].trim();
|
currentBook = match?.[1].trim();
|
||||||
console.log(currentBook);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue