showdown/test/mocks/mock-extension.js

15 lines
228 B
JavaScript
Raw Permalink Normal View History

var showdown = require('../../.build/showdown.js');
var ext = {
type: 'lang',
regex: /foo/g,
replace: 'bar'
};
showdown.extension('mockextension', function () {
'use strict';
return [ext];
});
module.exports = ext;