html-webpack-remark-plugin - Render Markdown to React through Remark
This is a plugin for html-webpack-plugin that allows you to render Markdown through remark and remark-react and to inject it into html-webpack-plugin template context.
The advantage of doing this is that you'll get HTML out of the box (avoids dangerouslySetInnerHTML
). This helps with SEO purposes and makes your page load a bit better.
Usage
;; // Import custom programming languages for remark to process; const config = plugins: title: pkgname + ' - ' + pkgdescription template: 'lib/index_template.ejs' inject: false // Context for the template name: pkgname description: pkgdescription demonstration: RENDER_UNIVERSAL ? ReactDOM : '' // Key under which to inject the processed file key: 'documentation' // Markdown file to read and process file: path // Custom programming languages to process languages: js: js ... ...
License
MIT.