Refactor markdown command insertion
* Separate the logic for transforming the input field from the logic for actually reading the state of the input field and applying changes. This enables testing of the commands without instantiating the component. Toolbar commands are functions which take the current state of the input field and return the updated state. * Add tests for the individual commands and use of the commands in the markdown editor.
Showing
This diff is collapsed.
Please register or sign in to comment