jekyll-md-highlight-parser

1.1.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i jekyll-md-highlight-parser

Weekly Downloads

4

Version

1.1.4

License

MIT

Unpacked Size

13.4 kB

Total Files

4

Last publish

Collaborators

  • piyushsi