15.1.3 • Published 8 years ago

itsa-react-fs-markdown v15.1.3

Weekly downloads
2
License
New BSD
Repository
github
Last release
8 years ago

itsa-react-fs-markdown

Read markdownfiles and return a dangerouslySetInnerHTML object as a Promise.

usage:

const fsMD = require('itsa-react-fs-markdown')(__dirname); // <-- always invoke with the current __dirname
const pagecontentPromise = fsMD.readFile('./markdown_files/index.MD');

/*
 * pagecontentPromise is a promise that gets fulfilled with an object like this:
 * {__html: 'the <b>content</b> of the file'}
 */

Code-blocks will get markedup as well, though you need to take care of the right css yourselve. Get the css from Highlight.js.

15.1.3

8 years ago

15.1.2

8 years ago

15.1.1

8 years ago

15.1.0

8 years ago

15.0.0

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago