Socket
Socket
Sign inDemoInstall

mdast-util-to-hast

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-util-to-hast - npm Package Compare versions

Comparing version 9.1.2 to 10.0.0

4

lib/index.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc