mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 18:10:18 +05:30
13 lines
332 B
JavaScript
13 lines
332 B
JavaScript
const { PluginAPI } = require('../../plugin-api');
|
|
|
|
class SamplePlugin extends PluginAPI {
|
|
init(context) {
|
|
this.context = context;
|
|
context.commands.register('hello', 'Sample: Hello World', () => {
|
|
console.log('[SamplePlugin] Hello from the plugin system!');
|
|
});
|
|
}
|
|
}
|
|
|
|
module.exports = { Plugin: SamplePlugin };
|