Read markdown files and render them as HTML with syntax highlighting and linking.
npm install megadoc megadoc-plugin-markdown
Let's assume we have a source folder like this:
|-- docs/usage.md
|-- docs/help.md
| README.md
We can build up a plugin to parse these files as such:
// @file: megadoc.conf.js
module.exports = {
plugins: [
require('megadoc-plugin-markdown')({
id: 'articles',
source: [ 'README.md', 'docs/**/*.md' ]
})
]
}
See Config for the available settings.
Made with ♥ using megadoc.
Contents