mdast-util-to-hast
Advanced tools
Comparing version 9.1.2 to 10.0.0
@@ -34,3 +34,3 @@ 'use strict' | ||
h.dangerous = dangerous | ||
h.definition = definitions(tree, settings) | ||
h.definition = definitions(tree) | ||
h.footnoteById = footnoteById | ||
@@ -103,3 +103,3 @@ h.footnoteOrder = [] | ||
// Mimick CM behavior of link definitions. | ||
// See: <https://github.com/syntax-tree/mdast-util-definitions/blob/8d48e57/index.js#L26>. | ||
// See: <https://github.com/syntax-tree/mdast-util-definitions/blob/8290999/index.js#L26>. | ||
if (!own.call(footnoteById, id)) { | ||
@@ -106,0 +106,0 @@ footnoteById[id] = definition |
{ | ||
"name": "mdast-util-to-hast", | ||
"version": "9.1.2", | ||
"version": "10.0.0", | ||
"description": "mdast utility to transform to hast", | ||
@@ -36,3 +36,3 @@ "license": "MIT", | ||
"@types/unist": "^2.0.0", | ||
"mdast-util-definitions": "^3.0.0", | ||
"mdast-util-definitions": "^4.0.0", | ||
"mdurl": "^1.0.0", | ||
@@ -39,0 +39,0 @@ "unist-builder": "^2.0.0", |
@@ -75,8 +75,2 @@ # mdast-util-to-hast | ||
###### `options.commonmark` | ||
Set to `true` (default: `false`) to prefer the first when duplicate definitions | ||
are found. | ||
The default behavior is to prefer the last duplicate definition. | ||
###### `options.handlers` | ||
@@ -83,0 +77,0 @@ |
@@ -10,4 +10,4 @@ // Minimum TypeScript Version: 3.2 | ||
definition: DefinitionCache | ||
footNoteById: Definition | ||
footnoreOrder: string[] | ||
footnoteById: Definition | ||
footnoteOrder: string[] | ||
handlers: Handlers | ||
@@ -40,11 +40,2 @@ unknownHandler: Handler | ||
/** | ||
* Set to `true` to prefer the first when duplicate definitions are found. | ||
* | ||
* The default behavior is to prefer the last duplicate definition. | ||
* | ||
* @default false | ||
*/ | ||
commonmark?: boolean | ||
/** | ||
* Object mapping [mdast](https://github.com/syntax-tree/mdast) | ||
@@ -51,0 +42,0 @@ * [nodes](https://github.com/syntax-tree/mdast#nodes) to functions handling them. |
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
32477
690
396
+ Addedmdast-util-definitions@4.0.0(transitive)
- Removedmdast-util-definitions@3.0.1(transitive)