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

@cloudflare/util-markdown

Package Overview
Dependencies
Maintainers
25
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/util-markdown

Cloudflare Markdown Util

  • 1.0.3
  • npm
  • Socket score

Version published
Weekly downloads
6.4K
increased by2.48%
Maintainers
25
Weekly downloads
 
Created
Source

cf-util-markdown

Cloudflare Markdown Util

This utility library is a simple interface that hides away the markdown implementation being used so that it can easily be swapped out for something else.

Installation

$ npm install cf-util-markdown

Usage

import markdown from 'cf-util-markdown';

markdown('# Hello World');
// >> <h1>Hello World</h1>

If for some crazy crazy crazy reason you need to stop the markdown from being sanitized you may do the following:

WARNING: Be extremely careful about XSS vulnerabilities when doing this!

markdown('<h1>Hello World</h1>', { __dangerouslyDontSanitizeMarkdown: true });

FAQs

Package last updated on 05 Jun 2018

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