Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 6.0.2 to 7.0.0

5

lib/all.js

@@ -5,3 +5,2 @@ 'use strict'

var trim = require('trim')
var one = require('./one')

@@ -23,3 +22,3 @@

if (result.value) {
result.value = trim.left(result.value)
result.value = result.value.replace(/^\s+/, '')
}

@@ -30,3 +29,3 @@

if (head && head.value) {
head.value = trim.left(head.value)
head.value = head.value.replace(/^\s+/, '')
}

@@ -33,0 +32,0 @@ }

@@ -5,3 +5,2 @@ 'use strict'

var xtend = require('xtend')
var u = require('unist-builder')

@@ -29,3 +28,3 @@ var visit = require('unist-util-visit')

h.augment = augment
h.handlers = xtend(handlers, settings.handlers || {})
h.handlers = Object.assign({}, handlers, settings.handlers)

@@ -50,3 +49,3 @@ visit(tree, 'footnoteDefinition', onfootnotedefinition)

if (right.type === 'element' && data.hProperties) {
right.properties = xtend(right.properties, data.hProperties)
right.properties = Object.assign({}, right.properties, data.hProperties)
}

@@ -53,0 +52,0 @@

{
"name": "mdast-util-to-hast",
"version": "6.0.2",
"version": "7.0.0",
"description": "Transform mdast to hast",

@@ -13,2 +13,6 @@ "license": "MIT",

"bugs": "https://github.com/syntax-tree/mdast-util-to-hast/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",

@@ -27,9 +31,7 @@ "contributors": [

"mdurl": "^1.0.1",
"trim": "0.0.1",
"trim-lines": "^1.0.0",
"unist-builder": "^1.0.1",
"unist-util-generated": "^1.1.0",
"unist-builder": "^2.0.0",
"unist-util-generated": "^1.0.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^1.1.0",
"xtend": "^4.0.1"
"unist-util-visit": "^2.0.0"
},

@@ -40,7 +42,7 @@ "devDependencies": {

"prettier": "^1.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^5.0.0",
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"tape": "^4.0.0",
"tinyify": "^2.0.0",
"xo": "^0.24.0"
"xo": "^0.25.0"
},

@@ -75,3 +77,6 @@ "scripts": {

"mdast-util-to-hast.js"
]
],
"rules": {
"unicorn/prefer-includes": "off"
}
},

@@ -78,0 +83,0 @@ "remarkConfig": {

2

readme.md

@@ -275,3 +275,3 @@ # mdast-util-to-hast

Use [`hast-util-santize`][sanitize] to make the hast tree safe.
Use [`hast-util-sanitize`][sanitize] to make the hast tree safe.

@@ -278,0 +278,0 @@ ## Related

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