front-matter-markdown
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -1,2 +0,2 @@ | ||
function(src) { | ||
module.exports = function(src) { | ||
var out = [] | ||
@@ -167,2 +167,2 @@ , link | ||
return out; | ||
} | ||
} |
(function() { | ||
var AstInlineLexer, DiffMatchPatch, InlineLexer, createFunc, dmp, inherits, patch; | ||
var AstInlineLexer, InlineLexer, inherits, newOutputFn; | ||
@@ -8,15 +8,5 @@ inherits = require('inherits-ex/lib/inherits'); | ||
createFunc = require('util-ex/lib/_create-function'); | ||
newOutputFn = require('./ast-inline-lexer-output-new'); | ||
DiffMatchPatch = require('diff-match-patch'); | ||
patch = require('./ast-inline-lexer-patch'); | ||
dmp = new DiffMatchPatch; | ||
module.exports = AstInlineLexer = (function() { | ||
var newOutputFn; | ||
newOutputFn = dmp.patch_apply(patch, InlineLexer.prototype.output.toString())[0]; | ||
inherits(AstInlineLexer, InlineLexer); | ||
@@ -28,3 +18,3 @@ | ||
AstInlineLexer.prototype.output = createFunc(newOutputFn); | ||
AstInlineLexer.prototype.output = newOutputFn; | ||
@@ -31,0 +21,0 @@ return AstInlineLexer; |
{ | ||
"name": "front-matter-markdown", | ||
"description": "get the config and toc object from the markdown string.", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"homepage": "https://github.com/snowyu/front-matter-markdown.js", | ||
@@ -47,4 +47,5 @@ "repository": { | ||
"coffee-coverage": "^1.0.0", | ||
"coffee-script": "^1.12.7", | ||
"cson": "^4.1.0", | ||
"grunt": "^1.0.4", | ||
"grunt": "~1.0.4", | ||
"grunt-contrib-clean": "~1.1.0", | ||
@@ -67,3 +68,3 @@ "grunt-contrib-coffee": "^1.0.0", | ||
"test": "grunt test", | ||
"test-cov": "istanbul cover node_modules/.bin/_mocha --report lcovonly" | ||
"test-cov": "grunt build && istanbul cover node_modules/.bin/_mocha --report lcovonly" | ||
}, | ||
@@ -70,0 +71,0 @@ "contributors": [ |
@@ -1,2 +0,2 @@ | ||
function(src) { | ||
module.exports = function(src) { | ||
var out = [] | ||
@@ -167,2 +167,2 @@ , link | ||
return out; | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
125114
19
1502