showdown/test/mocks/mock-extension.js

15 lines
228 B
JavaScript
Raw 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;