showdown/test/mocks/mock-extension.js
Estevao Soares dos Santos 3871765ac1 fix(cli): cli now works properly
The CLI was completely rewrote. Changed dependency from yargs to commanderjs,
which is cleaner, faster and has no dependencies.
Also added a complete testsuite for the cli.

Closes #893, #894
2022-03-03 12:15:50 +00:00

15 lines
228 B
JavaScript

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;