showdown-ghost-highlight
Advanced tools
Comparing version
{ | ||
"name": "showdown-ghost-highlight", | ||
"version": "0.0.3", | ||
"version": "0.0.5", | ||
"description": "Showdown Ghost Highlight Extension", | ||
@@ -26,4 +26,4 @@ "keywords": [ | ||
"grunt-simple-mocha": "^0.4.0", | ||
"showdown": "^1.6.2" | ||
"showdown": "showdownjs/showdown#develop" | ||
} | ||
} |
@@ -47,3 +47,3 @@ /* jshint node:true, browser:true */ | ||
'italicsAndBold.after': function (evtName, text) { | ||
text = text.replace(/\B={2}([^=]+?)={2}\B/g, function (match, content) { | ||
text = text.replace(/\B==([^=\s][\s\S]*?)==\B/gm, function (match, content) { | ||
return '<mark>' + content + '</mark>'; | ||
@@ -50,0 +50,0 @@ }); |
@@ -1,1 +0,1 @@ | ||
this \==should not highlight=\= | ||
this \==should not highlight=\= |
@@ -93,2 +93,6 @@ /** | ||
// Remove extra lines | ||
testCase.expected = testCase.expected.trim(); | ||
testCase.actual = testCase.actual.trim(); | ||
return testCase; | ||
@@ -95,0 +99,0 @@ } |
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
50403
43.99%32
60%196
1.55%