@hoast/process-markdown
v3.3.1
Published
Convert markdown to HTML using Unified
Downloads
32
Readme
@hoast/process-markdown
Convert markdown to HTML using Unified.
Install
npm install @hoast/process-markdown
Options
{String} property = 'contents'
Dot notation path to the data property which should be processed as markdown.{Array} remarkPlugins = []
Remark plugins. If the value in the array is an array the first will be instantiated if not already an instance, the subsequent values will be used as the plugin's options.{Array} remarkParseOptions = {}
Options forremark-parse
plugin.{Array} remarkRehypeOptions = {}
Options forremark-rehype
plugin.{Array} rehypeRawOptions = {}
Options forremark-raw
plugin.{Array} rehypePlugins = []
Rehype plugins. If the value in the array is an array the first will be instantiated if not already an instance, the subsequent values will be used as the plugin's options.{Array} rehypeSanitizeOptions = {}
Options forrehype-sanitize
plugin.{Array} rehypeStringifyOptions = {}
Options forrehype-stringify
plugin.{Function} filter = null
Custom filter function. The item data is given as the parameter. Returntrue
if it should be processed, returnfalse
if this processor should be skipped.{Number} logLevel = 2
Log level given to the logger.