You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

markdown-toolset

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-toolset - npm Package Compare versions

Comparing version

to
0.1.1

{
"name": "markdown-toolset",
"main": "dist/markdown-toolset.js",
"version": "0.1.0",
"version": "0.1.1",
"description": "Tiny module for markdown editing.",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/Deadarius/markdown-toolset",

var surroundOrUnsurround = require('./surround-or-unsurround')
var prefixOrUnprefix = require('./prefix-or-unprefix')
module.exports = {
var mt = {
bold: function (text) {

@@ -47,6 +47,6 @@ return surroundOrUnsurround(text, '**')

var fnName = 'h' + hashes
var fn = this[fnName]
var fn = mt[fnName]
return fn(textUnheaded)
} else {
return this.h1(text)
return mt.h1(text)
}

@@ -80,1 +80,3 @@ },

}
module.exports = mt
{
"name": "markdown-toolset",
"version": "0.1.0",
"version": "0.1.1",
"description": "Tiny module for markdown editing.",

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