3.3.1 • Published 2 years ago
@hoast/process-markdown v3.3.1
@hoast/process-markdown
Convert markdown to HTML using Unified.
Install
npm install @hoast/process-markdownOptions
{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-parseplugin.{Array} remarkRehypeOptions = {}Options forremark-rehypeplugin.{Array} rehypeRawOptions = {}Options forremark-rawplugin.{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-sanitizeplugin.{Array} rehypeStringifyOptions = {}Options forrehype-stringifyplugin.{Function} filter = nullCustom filter function. The item data is given as the parameter. Returntrueif it should be processed, returnfalseif this processor should be skipped.{Number} logLevel = 2Log level given to the logger.