A Jekyll Markdown Highlight && Image parser.
$ npm install jekyll-md-highlight-parser
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>;