documittu-markdown-loader

0.3.3 • Public • Published

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


---
imports:
  HelloWorld: './hello-world.js'
---
# Hello World

This is an example component

```render html
<HelloWorld />
```

Package Sidebar

Install

npm i documittu-markdown-loader

Weekly Downloads

1

Version

0.3.3

License

MIT

Unpacked Size

43.3 kB

Total Files

8

Last publish

Collaborators

  • pajn