markdown-toolset
Advanced tools
{ | ||
"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", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20717
0.04%532
0.19%0
-100%