remark-parse
Advanced tools
Comparing version 9.0.0-alpha.0 to 9.0.0-alpha.1
17
index.js
@@ -13,10 +13,13 @@ 'use strict' | ||
function parse(doc) { | ||
var settings = Object.assign({}, self.data('settings'), options) | ||
// Note: these options are not in the readme. | ||
// The goal is for them to be set by plugins on `data` instead of being | ||
// passed by users. | ||
settings.extensions = settings.micromarkExtensions | ||
settings.mdastExtensions = settings.fromMarkdownExtensions | ||
return fromMarkdown(doc, settings) | ||
return fromMarkdown( | ||
doc, | ||
Object.assign({}, self.data('settings'), options, { | ||
// Note: these options are not in the readme. | ||
// The goal is for them to be set by plugins on `data` instead of being | ||
// passed by users. | ||
extensions: self.data('micromarkExtensions') || [], | ||
mdastExtensions: self.data('fromMarkdownExtensions') || [] | ||
}) | ||
) | ||
} | ||
} |
{ | ||
"name": "remark-parse", | ||
"version": "9.0.0-alpha.0", | ||
"version": "9.0.0-alpha.1", | ||
"description": "remark plugin to parse Markdown", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11069
117
0