Socket
Socket
Sign inDemoInstall

mdast-util-to-hast

Package Overview
Dependencies
Maintainers
1
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 2.1.2 to 2.2.0

5

lib/index.js

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

4

package.json
{
"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 @@

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