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

remark-directive-rehype

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-directive-rehype - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

10

package.json
{
"name": "remark-directive-rehype",
"version": "0.3.0",
"version": "0.4.0",
"description": "Remark plugin to enable Markdown directives to be parsed as HTML.",

@@ -39,9 +39,5 @@ "keywords": [

"mdast-util-from-markdown": "^1.0.4",
"typescript": "^4.4.4"
"typescript": "^4.4.4",
"unified": "^10.1.0"
},
"peerDependencies": {
"remark-directive": "2.x",
"remark-rehype": "9.x || 10.x",
"unified": "10.x"
},
"engines": {

@@ -48,0 +44,0 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"

@@ -7,5 +7,5 @@ # remark-directive-rehype

This package is a [unified][] ([remark][]) plugin to enable Markdown directives to be parsed as
HTML when using [remark-rehype][]. Markdown directives are first parsed with
[remark-directive][] which needs to be used before this plugin.
This package is a [unified][] ([remark][]) plugin to enable Markdown directives to be parsed as HTML
when using [remark-rehype][]. Markdown directives are first parsed with [remark-directive][]
which needs to be used before this plugin.

@@ -22,5 +22,5 @@ **unified** is a project that transforms content with abstract syntax trees

This project is useful when you want directives parsed by [remark-directive][] to be later
parsed as HTML ([hast][] nodes) when using [remark-rehype][]. This is specifically useful when one
wants to convert Markdown directives into HTML tags that can be outputted as components with
This project is useful when you want directives parsed by [remark-directive][] to be later parsed as
HTML ([hast][] nodes) when using [remark-rehype][]. This is specifically useful when one wants to
convert Markdown directives into HTML tags that can be outputted as components with
[remark-markdown][].

@@ -169,3 +169,3 @@

.use(rehypeStringify)
.process('~one~ and ~~two~~')
.process(await read('example.md'))

@@ -193,2 +193,4 @@ console.log(String(file))

[hast]: https://github.com/syntax-tree/hast
[yarn]: https://yarnpkg.com/lang/en/docs/install/

@@ -195,0 +197,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