1.1.4 • Published 5 years ago

jekyll-md-highlight-parser v1.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago