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 13.0.2 to 13.1.0

5

lib/state.d.ts

@@ -35,2 +35,3 @@ /**

export type MdastParents = import('mdast').Parents;
export type VFile = import('vfile').VFile;
export type FootnoteBackContentTemplate = import('./footer.js').FootnoteBackContentTemplate;

@@ -79,2 +80,6 @@ export type FootnoteBackLabelTemplate = import('./footer.js').FootnoteBackLabelTemplate;

/**
* Corresponding virtual file representing the input document (optional).
*/
file?: VFile | null | undefined;
/**
* Content of the backreference back to references (default: `defaultFootnoteBackContent`).

@@ -81,0 +86,0 @@ *

4

lib/state.js

@@ -14,2 +14,4 @@ /**

*
* @typedef {import('vfile').VFile} VFile
*
* @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate

@@ -60,2 +62,4 @@ * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate

* Using a prefix solves these problems.
* @property {VFile | null | undefined} [file]
* Corresponding virtual file representing the input document (optional).
* @property {FootnoteBackContentTemplate | string | null | undefined} [footnoteBackContent]

@@ -62,0 +66,0 @@ * Content of the backreference back to references (default: `defaultFootnoteBackContent`).

9

package.json
{
"name": "mdast-util-to-hast",
"version": "13.0.2",
"version": "13.1.0",
"description": "mdast utility to transform to hast",

@@ -43,8 +43,9 @@ "license": "MIT",

"unist-util-position": "^5.0.0",
"unist-util-visit": "^5.0.0"
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/ungap__structured-clone": "^0.3.0",
"c8": "^8.0.0",
"@types/ungap__structured-clone": "^1.0.0",
"c8": "^9.0.0",
"hast-util-to-html": "^9.0.0",

@@ -51,0 +52,0 @@ "hastscript": "^8.0.0",

@@ -354,2 +354,4 @@ # mdast-util-to-hast

*clobbering*
* `file` ([`VFile`][vfile], optional)
— corresponding virtual file representing the input document
* `footnoteBackContent`

@@ -1691,2 +1693,4 @@ ([`FootnoteBackContentTemplate`][api-footnote-back-content-template]

[vfile]: https://github.com/vfile/vfile
[clobber-example]: https://github.com/rehypejs/rehype-sanitize#example-headings-dom-clobbering

@@ -1693,0 +1697,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