documittu-markdown-loader
v0.3.3
Published
Webpack loader to render React Components from markdown
Downloads
5
Maintainers
Readme
This is a fork of react-markdown-loader that is customized to fit documittu.
This loader parses markdown files and converts them to a React Stateless Component. It will also parse FrontMatter to import dependencies and render components along with it’s source code.
Usage
In the FrontMatter you should import the components you want to render with the component name as a key and it's path as the value
---
imports:
HelloWorld: './hello-world.js',
'{ Component1, Component2 }': './components.js'
---
hello-world.md