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

downmark

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

downmark - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0

README.md

15

bundle.js

@@ -798,9 +798,22 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

var opt = {
gfm: true,
converters: [{
filter: 'span',
filter: ['span', 'div', 'small', 'font'],
replacement: function (content) {
return content
}
},
{
filter: 'li',
replacement: function (content, node) {
content = content.replace(/^\s+/, '').replace(/\n/gm, '\n ')
var parent = node.parentNode
var index = Array.prototype.indexOf.call(parent.children, node) + 1
var prefix = /ol/i.test(parent.nodeName) ? index + '. ' : '- '
return prefix + content
}
}]
}
inputEl.onkeydown = inputEl.onkeyup = debounce(function() {

@@ -807,0 +820,0 @@ var newVal = inputEl.innerHTML

@@ -16,9 +16,22 @@ var toMarkdown = require('to-markdown')

var opt = {
gfm: true,
converters: [{
filter: 'span',
filter: ['span', 'div', 'small', 'font'],
replacement: function (content) {
return content
}
},
{
filter: 'li',
replacement: function (content, node) {
content = content.replace(/^\s+/, '').replace(/\n/gm, '\n ')
var parent = node.parentNode
var index = Array.prototype.indexOf.call(parent.children, node) + 1
var prefix = /ol/i.test(parent.nodeName) ? index + '. ' : '- '
return prefix + content
}
}]
}
inputEl.onkeydown = inputEl.onkeyup = debounce(function() {

@@ -25,0 +38,0 @@ var newVal = inputEl.innerHTML

5

package.json
{
"name": "downmark",
"version": "0.0.0",
"version": "0.1.0",
"description": "editor that turns rich text into markdown",

@@ -9,3 +9,4 @@ "main": "index.js",

"scripts": {
"build": "browserify . -o bundle.js"
"bundle": "sed '/<script src=\"bundle.js\"><\\/script>/{ s/.*/<script>/; r bundle.js\na</script>\n}' index.html > bundle.html",
"prepublish": "browserify . -o bundle.js"
},

@@ -12,0 +13,0 @@ "devDependencies": {

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