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

remark-react

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-react - npm Package Compare versions

Comparing version 3.0.2 to 3.1.0

5

history.md
<!--lint disable no-multiple-toplevel-headings-->
# 3.1.0
* Adds `toHast` option that allows customization at the [mdast-util-to-hast](https://github.com/wooorm/mdast-util-to-hast#api)
level.
# 3.0.2

@@ -4,0 +9,0 @@

3

index.js

@@ -39,2 +39,3 @@ 'use strict';

var scheme = clean && (typeof settings.sanitize !== 'boolean') ? settings.sanitize : null;
var toHastOptions = settings.toHast || {};

@@ -83,3 +84,3 @@ /**

properties: {},
children: toHAST(node).children
children: toHAST(node, toHastOptions).children
};

@@ -86,0 +87,0 @@

{
"name": "remark-react",
"description": "Compile Markdown to React with remark",
"version": "3.0.2",
"version": "3.1.0",
"author": {

@@ -6,0 +6,0 @@ "name": "Titus Wormer",

@@ -103,2 +103,7 @@ # remark-react

* `toHast` (`object`, default: `{}`)
— Provides options for transforming MDAST document to HAST.
See [mdast-util-to-hast](https://github.com/wooorm/mdast-util-to-hast#api)
for settings.
These can passed to `remark.use()` as a second argument.

@@ -105,0 +110,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