mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
c3411a567d
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. Merged branch 'cli_refactor' into develop Closes #893, #894
15 lines
228 B
JavaScript
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;
|