ext-markdown
Markdown transpiler with optional lhtml formatting.
Usage
rtb.markdown(options={});
Options
options will override rtb.moduleOptions.
rtb.buildOptions (BuildConfig.buildOptions)
Option | Type | Default | Description |
---|---|---|---|
minify | boolean | false | Minify html output. |
prettify | boolean | false | Prettify html output. |
rtb.moduleOptions (BuildConfig.moduleOptions)
Property | Type | Default | Description |
---|---|---|---|
markdown | Object | {} | Options to gulp-markdown. |
htmlmin | Object | {} | Options to gulp-htmlmin. |
prettier | Object | {} | Options to gulp-prettier. |
Example
const markdown = {
name: 'markdown',
builder: (rtb) => rtb.src().markdown().dest(),
src: ['assets/docs/**/*.md'],
dest: 'www/pages',
buildOptions: {
prettify: true,
},
moduleOptions: {
prettier: { useTabs: false, tabWidth: 4 },
}
};
Notes
This extension is for custom processing. Use GMarkdownBuilder for markdown file processiing.