jstransformer-marked
Advanced tools
Weekly downloads
Changelog
v1.3.0: 2023-01-27
Readme
Marked support for JSTransformers.
npm install jstransformer-marked
const marked = require('jstransformer')(require('jstransformer-marked'));
marked.render('# Hello World!').body
//=> '<h1>Hello World!</h1>'
const markedOptions = {}
marked.render('# "Hello World"', markedOptions)
// also supports async walkTokens
marked.renderAsync('# Hello World', {
walkTokens: async (token) => {
const uriPrefix = await uriPrefixAsync()
if (token.href) {
token.href = uriPrefix + token.href
}
}
})
For all supported options see https://marked.js.org/using_advanced#options
MIT
FAQs
Marked support for JSTransformers.
The npm package jstransformer-marked receives a total of 624 weekly downloads. As such, jstransformer-marked popularity was classified as not popular.
We found that jstransformer-marked demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.