hagenburger / pimd

PIMD – Processing Instructions for Markdown
https://hagenburger.github.io/pimd-docs/
MIT License
20 stars 5 forks source link

Refactor command interface #41

Open hagenburger opened 6 years ago

hagenburger commented 6 years ago

The current way to add a new command (Processing Instruction) <?my-command?> is:

config.commands['my-command'] = () => 'return value'

This should be refactored into:

config.commands.add('my-command', () => 'return value')
violetadev commented 6 years ago

Refactor command interface