mdast-util-to-hast
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -16,6 +16,7 @@ 'use strict'; | ||
function factory(tree, options) { | ||
var dangerous = (options || {}).allowDangerousHTML; | ||
var settings = options || {}; | ||
var dangerous = settings.allowDangerousHTML; | ||
h.dangerous = dangerous; | ||
h.definition = definitions(tree); | ||
h.definition = definitions(tree, settings); | ||
h.footnotes = []; | ||
@@ -22,0 +23,0 @@ h.augment = augment; |
{ | ||
"name": "mdast-util-to-hast", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "Transform MDAST to HAST", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
"has": "^1.0.1", | ||
"mdast-util-definitions": "^1.1.1", | ||
"mdast-util-definitions": "^1.2.0", | ||
"normalize-uri": "^1.0.0", | ||
@@ -28,0 +28,0 @@ "trim": "0.0.1", |
@@ -47,2 +47,7 @@ # mdast-util-to-hast [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
###### `options.commonmark` | ||
Set to `true` (default: `false`) to prefer the first when duplicate definitions | ||
are found. The default behaviour is to prefer the last duplicate definition. | ||
###### Returns | ||
@@ -49,0 +54,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20411
527
103