TRIAEIOU / markdown-input

Anki addon to allow note editing in markdown, either in the Anki windows or external dialog.
MIT License
18 stars 2 forks source link

Enable markdownKeymap for editor #3

Closed d-k-bo closed 1 year ago

d-k-bo commented 1 year ago

It is currently quite annoying that when writing a (bullet) list, you need to type - for every item again. Luckily, CodeMirror can automatically continue lists, like many other editors do.

This PR enables the two keybinds provided by https://github.com/codemirror/lang-markdown#user-content-markdownkeymap.

It binds Enter to insertNewlineContinueMarkup and Backspace to deleteMarkupBackward.

Thank you for your work on this project!

TRIAEIOU commented 1 year ago

Perfekt, thanks!

d-k-bo commented 1 year ago

Thanks for merging!