Skip to content

Commit 7c7f49e

Browse files
committed
Merge branch 'develop'
2 parents 9792ca9 + b80bdce commit 7c7f49e

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/showdown.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ Showdown.converter = function (converter_options) {
222222

223223
// Iterate over each plugin
224224
Showdown.forEach(converter_options.extensions, function (plugin) {
225+
var pluginName = plugin;
225226

226227
// Assume it's a bundled plugin if a string is given
227228
if (typeof plugin === 'string') {
@@ -244,7 +245,7 @@ Showdown.converter = function (converter_options) {
244245
}
245246
});
246247
} else {
247-
throw "Extension '" + plugin + "' could not be loaded. It was either not found or is not a valid extension.";
248+
throw "Extension '" + pluginName + "' could not be loaded. It was either not found or is not a valid extension.";
248249
}
249250
});
250251
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>2015-10-04</p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2015-10-04

test/run.js

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ var runTestsInDir = function(dir, converter) {
5454
describe('Markdown', function() {
5555
var converter = new showdown.converter();
5656
runTestsInDir('test/cases', converter);
57+
runTestsInDir('test/issues', converter);
5758
});
5859

5960

0 commit comments

Comments
 (0)