front-matter-markdown
Advanced tools
Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "front-matter-markdown", | ||
"description": "get the config and toc object from the markdown string.", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"homepage": "https://github.com/snowyu/front-matter-markdown.js", | ||
@@ -37,14 +37,13 @@ "repository": { | ||
"dependencies": { | ||
"diff": "^1.4.0", | ||
"diff": "^2.2.2", | ||
"diff-match-patch": "^1.0.0", | ||
"gray-matter": "^2.0.1", | ||
"inherits-ex": "^1.1.3", | ||
"install": "^0.1.8", | ||
"kramed": "0.5.1", | ||
"util-ex": "^0.3.12" | ||
"gray-matter": "^2.0.2", | ||
"inherits-ex": "^1.1.4", | ||
"kramed": "0.5.6", | ||
"util-ex": "^0.3.15" | ||
}, | ||
"devDependencies": { | ||
"chai": "~1.10.0", | ||
"coffee-coverage": "^0.6.2", | ||
"cson": "^3.0.1", | ||
"chai": "~3.2.0", | ||
"coffee-coverage": "^0.6.3", | ||
"cson": "^3.0.2", | ||
"grunt": "~0.4.5", | ||
@@ -58,3 +57,3 @@ "grunt-contrib-clean": "~0.6.0", | ||
"grunt-release": "~0.9.0", | ||
"istanbul": "^0.3.17", | ||
"istanbul": "^0.3.18", | ||
"mocha": "~2.1.0", | ||
@@ -64,4 +63,4 @@ "pre-commit": "~1.0.2", | ||
"shasum": "1.0.0", | ||
"sinon": "~1.12.2", | ||
"sinon-chai": "~2.6.0" | ||
"sinon": "~1.16.1", | ||
"sinon-chai": "~2.8.0" | ||
}, | ||
@@ -68,0 +67,0 @@ "scripts": { |
@@ -43,4 +43,4 @@ function(src) { | ||
if (cap = this.rules.html.exec(src)) { | ||
// Found a paragraph | ||
if(cap[1] === 'p' && cap[2]) { | ||
// Found a link | ||
if(cap[1] === 'a' && cap[2] && !this.inLink) { | ||
// Opening tag | ||
@@ -57,10 +57,8 @@ out = out.concat(cap[0].substring(0, cap[0].indexOf(cap[2]))); | ||
// Found a link | ||
if(cap[1] === 'a' && cap[2] && !this.inLink) { | ||
// Found HTML that we should parse | ||
if(cap[1] && !isHTMLBlock(cap[1]) && cap[2]) { | ||
// Opening tag | ||
out = out.concat(cap[0].substring(0, cap[0].indexOf(cap[2]))); | ||
this.inLink = true; | ||
// In between the tag | ||
out = out.concat(this.output(cap[2])); | ||
this.inLink = false; | ||
// Outer tag | ||
@@ -67,0 +65,0 @@ out = out.concat(cap[0].substring(cap[0].indexOf(cap[2])+cap[2].length)); |
@@ -43,8 +43,10 @@ function (src) { | ||
if (cap = this.rules.html.exec(src)) { | ||
// Found a paragraph | ||
if(cap[1] === 'p' && cap[2]) { | ||
// Found a link | ||
if(cap[1] === 'a' && cap[2] && !this.inLink) { | ||
// Opening tag | ||
out += cap[0].substring(0, cap[0].indexOf(cap[2])); | ||
this.inLink = true; | ||
// In between the tag | ||
out += this.output(cap[2]); | ||
this.inLink = false; | ||
// Outer tag | ||
@@ -57,10 +59,8 @@ out += cap[0].substring(cap[0].indexOf(cap[2])+cap[2].length); | ||
// Found a link | ||
if(cap[1] === 'a' && cap[2] && !this.inLink) { | ||
// Found HTML that we should parse | ||
if(cap[1] && !isHTMLBlock(cap[1]) && cap[2]) { | ||
// Opening tag | ||
out += cap[0].substring(0, cap[0].indexOf(cap[2])); | ||
this.inLink = true; | ||
// In between the tag | ||
out += this.output(cap[2]); | ||
this.inLink = false; | ||
// Outer tag | ||
@@ -67,0 +67,0 @@ out += cap[0].substring(cap[0].indexOf(cap[2])+cap[2].length); |
Sorry, the diff of this file is not supported yet
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
6
59612
27
302
1
+ Addeddiff@2.2.3(transitive)
+ Addedkramed@0.5.6(transitive)
- Removedinstall@^0.1.8
- Removeddiff@1.4.0(transitive)
- Removedinstall@0.1.8(transitive)
- Removedkramed@0.5.1(transitive)
Updateddiff@^2.2.2
Updatedgray-matter@^2.0.2
Updatedinherits-ex@^1.1.4
Updatedkramed@0.5.6
Updatedutil-ex@^0.3.15