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

convert-rich-text

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-rich-text - npm Package Compare versions

Comparing version

to
1.0.4

5

lib/dom.js

@@ -79,5 +79,4 @@ var dom = module.exports = function(node) {

dom.prototype.moveChildren = function(newNode) {
var children = this.node.childNodes;
for (var i = 0; i < children.length; i++) {
newNode.appendChild(children[i]);
while (this.node.firstChild) {
newNode.appendChild(this.node.firstChild);
}

@@ -84,0 +83,0 @@ return this;

2

package.json
{
"name": "convert-rich-text",
"version": "1.0.3",
"version": "1.0.4",
"description": "Convert an insert-only rich-text delta into HTML",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -83,2 +83,13 @@ var assert = require('chai').assert;

{
desc: 'Link inside list',
delta: { ops: [
{insert: 'Some text '},
{insert: 'a link', attributes: {link: 'http://vox.com'}},
{insert: ' more text'},
{insert: '\n', attributes: {list: true}}
]},
expected:
'<ol><li>Some text <a href="http://vox.com">a link</a> more text</li></ol>'
},
{
desc: 'Custom',

@@ -85,0 +96,0 @@ delta: { ops: [