New project - Scripture Inline
In any written prose, I can have a script that scans it and identifies Scripture, so that when I hover or click on the Scripture a verse card appears.
Romans 8
Jeremiah 29:11-13
James 1:3
All the code it took:
<!--
Get your public app key at platform.youversion.com
Scripture Inline is a community project.
Not made, endorsed, or supported by YouVersion.
-->
<script
src="https://cdn.jsdelivr.net/npm/@faith-tools/scripture-inline@0.1.1/dist/scripture-inline.js"
data-yvp-public-app-key="YVP_APP_KEY"
data-yvp-bible-version-id="3034"
data-mode="card"
data-trigger="hover"
></script>
https://github.com/cameronapak/scripture-inline
Bible text from the YouVersion Platform (Not made, endorsed, or supported by YouVersion). References parsed by grab-bcv, and links open route.bible, both by Dylan Shade. Docs styled with Sensible UI.