Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@amanda-mitchell/remark-tag-bible-references
Advanced tools
This is a remark plugin that will use the Biblia API to tag Bible references.
This is a remark plugin that will use the Biblia API to tag Bible references.
yarn add @amanda-mitchell/biblia-api @amanda-mitchell/remark-tag-bible-references
const unified = require('unified');
const markdown = require('remark-parse');
const stringify = require('rehype-stringify');
const remark2rehype = require('remark-rehype');
const fetch = require('node-fetch'); // This can be any library that implements the Fetch interface
const { createBibliaApiClient } = require('@amanda-mitchell/biblia-api');
const {
tagBibleReferences,
} = require('@amanda-mitchell/remark-tag-bible-references');
const apiKey =
'Go to https://bibliaapi.com/docs/API_Keys to generate an API key.';
const bibliaApi = createBibliaApiClient({ apiKey, fetch });
const markdownDoc = `
# Hello, world!
One of my favorite passages is Prov 26:4-5.
`;
const html = unified()
.use(markdown)
.use(tagBibleReferences, { bibliaApi })
.use(remark2rehype)
.use(stringify)
.process(markdownDoc).contents;
console.log(html);
When run, this script will print
<h1>Hello, world!</h1>
<p>One of my favorite passages is <a href="https://biblia.com/bible/proverbs/26/4-5">Prov 26:4-5</a>.</p>
In addition to transforming Bible references into links, this plugin will also attach a bibleReference
property to each link's data
node that contains information about the parsed reference.
FAQs
This is a remark plugin that will use the Biblia API to tag Bible references.
The npm package @amanda-mitchell/remark-tag-bible-references receives a total of 28 weekly downloads. As such, @amanda-mitchell/remark-tag-bible-references popularity was classified as not popular.
We found that @amanda-mitchell/remark-tag-bible-references demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.