Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jstransformer-marked

Package Overview
Dependencies
Maintainers
7
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jstransformer-marked

Marked support for JSTransformers.

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
613
decreased by-57.19%
Maintainers
7
Weekly downloads
 
Created
Source

jstransformer-marked

Marked support for JSTransformers.

Build Status Coverage Status NPM version

Installation

npm install jstransformer-marked

API

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

License

MIT

Keywords

FAQs

Package last updated on 18 Jul 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc