@deskeen/web-builder-inline-markdown
v0.1.3
Published
Web Builder Module - Inline Markdown files
Downloads
2
Maintainers
Readme
Web Builder Module - Inline Markdown files
This module allows the @deskeen/web-builder engine to inline Markdown files.
It uses the @deskeen/markdown parser under the hood to parse the text.
Install
npm install @deskeen/web-builder
npm install @deskeen/web-builder-inline-markdown
Usage
And add the module to the list of modules:
const builder = require('@deskeen/web-builder')
const builder.build([
source: [
// List of files or directories that include
// {{inlineMD:file.md}} tags
],
modules: [
[
'@deskeen/web-builder-inline-markdown',
{
assets: [
// List of directories that include
// the markdown files included in the tags
],
onAssetsLoad: assetsMap => {
// Optional event that allows to edit the content
// of the assets before passing it to the parser.
},
parserOptions: {
// See https://github.com/deskeen/markdown
// for a complete list of options
}
}
]
]
])
Contact
You can reach me at {my_firstname}@{my_name}.fr
Licence
MIT Licence - Copyright (c) Morgan Schmiedt