New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

draftjs-md-converter

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draftjs-md-converter - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

dist/index.js

@@ -201,3 +201,3 @@ 'use strict';

var parse = require('markdown-to-ast').parse;
var parse = require('@textlint/markdown-to-ast').parse;

@@ -378,2 +378,4 @@ var defaultInlineStyles = {

addInlineStyleRange(text.length, child.value.length, style.type);
} else if (inlineStyles[child.type]) {
addInlineStyleRange(text.length, child.value.length, inlineStyles[child.type].type);
}

@@ -380,0 +382,0 @@ text = '' + text + (child.type === 'Image' || videoShortcodeRegEx.test(child.raw) ? ' ' : child.value);

{
"name": "draftjs-md-converter",
"version": "1.0.0",
"version": "1.1.0",
"description": "Converter for converting Draft.js state into Markdown and vice versa",

@@ -65,4 +65,4 @@ "main": "dist/index.js",

"dependencies": {
"markdown-to-ast": "^3.2.3"
"@textlint/markdown-to-ast": "^6.0.8"
}
}
'use strict';
const parse = require('markdown-to-ast').parse;
const parse = require('@textlint/markdown-to-ast').parse;

@@ -183,2 +183,4 @@ const defaultInlineStyles = {

addInlineStyleRange(text.length, child.value.length, style.type);
} else if (inlineStyles[child.type]) {
addInlineStyleRange(text.length, child.value.length, inlineStyles[child.type].type);
}

@@ -185,0 +187,0 @@ text = `${text}${

Sorry, the diff of this file is not supported yet

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