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.1 to 9.1.2

27

lib/handlers/table.js

@@ -12,3 +12,3 @@ 'use strict'

var index = rows.length
var align = node.align
var align = node.align || []
var alignLength = align.length

@@ -25,3 +25,3 @@ var result = []

name = index === 0 ? 'th' : 'td'
pos = alignLength
pos = alignLength || row.length
out = []

@@ -41,13 +41,14 @@

wrap(
[
h(result[0].position, 'thead', wrap([result[0]], true)),
h(
{
start: position.start(result[1]),
end: position.end(result[result.length - 1])
},
'tbody',
wrap(result.slice(1), true)
)
],
[h(result[0].position, 'thead', wrap([result[0]], true))].concat(
result[1]
? h(
{
start: position.start(result[1]),
end: position.end(result[result.length - 1])
},
'tbody',
wrap(result.slice(1), true)
)
: []
),
true

@@ -54,0 +55,0 @@ )

{
"name": "mdast-util-to-hast",
"version": "9.1.1",
"version": "9.1.2",
"description": "mdast utility to transform to hast",

@@ -35,3 +35,3 @@ "license": "MIT",

"@types/mdast": "^3.0.0",
"@types/unist": "^2.0.3",
"@types/unist": "^2.0.0",
"mdast-util-definitions": "^3.0.0",

@@ -46,3 +46,3 @@ "mdurl": "^1.0.0",

"browserify": "^16.0.0",
"dtslint": "^3.0.0",
"dtslint": "^4.0.0",
"nyc": "^15.0.0",

@@ -49,0 +49,0 @@ "prettier": "^2.0.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