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

front-matter-markdown

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

front-matter-markdown - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

25

package.json
{
"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

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