New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jekyll-md-highlight-parser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jekyll-md-highlight-parser

A module to Parse Jekyll Markdown Highlights and Images.

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

jekyll-md-highlight-parser

A Jekyll Markdown Highlight && Image parser.

Installation

$ npm install jekyll-md-highlight-parser

Usage

let mdJekyll = `{% highlight ruby %}
puts "I love ice cream"
{% endhighlight %}`;

// Parse Highlight using ReactMarkdown && CodeBlock
import { hParse } from "jekyll-md-highlight-parser";

<ReactMarkdown
  escapeHtml={true}
  source={mdParse(mdJekyll)}
  renderers={{ code: CodeBlock }}
></ReactMarkdown>;

// Parse Highlight with image using ReactMarkdown
import { hParse, iParse } from "jekyll-md-highlight-parser";
<ReactMarkdown
  escapeHtml={true}
  source={iParse(hParse(mdJekyll))}
  renderers={{ code: CodeBlock }}
></ReactMarkdown>;

Badges

npm version

License

MIT

FAQs

Package last updated on 16 Nov 2020

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