ext-markdown

Markdown transpiler with optional lhtml formatting.

Usage

rtb.markdown(options={});

Options

options will override rtb.moduleOptions.

rtb.buildOptions (BuildConfig.buildOptions)

OptionTypeDefaultDescription
minifybooleanfalseMinify html output.
prettifybooleanfalsePrettify html output.

rtb.moduleOptions (BuildConfig.moduleOptions)

PropertyTypeDefaultDescription
markdownObject{}Options to gulp-markdown.
htmlminObject{}Options to gulp-htmlmin.
prettierObject{}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.