lakesare / memcode

Spaced-repetition: with real formatting.
http://memcode.com
MIT License
335 stars 72 forks source link

support for markdown code in the editor #9

Open kgashok opened 4 years ago

kgashok commented 4 years ago

Will you be supporting Markdown?

lakesare commented 4 years ago

Hi! I'm afraid UI would get too confusing if we are to add Markdown formatting. Right now you can use keyboard shortcuts for almost all formatting options (bold, code, code block, quote, etc), does that not suffice?

kgashok commented 4 years ago

How about ![img](http://url_to_some_image.jpg)? This will allow for changes to images to be reflected here on memcode.

And how about headings? If not that, provision for variation in font size.

lakesare commented 4 years ago

This will allow for changes to images to be reflected here on memcode.

🤔Usually that's the opposite of the desired behaviour. I went an extra mile to make sure images stay as they are once we upload them. I don't think that's a widespread enough use case for me to implement it, but you are welcome to create a PR that will be turning ![img](http://url_to_some_image.jpg) into actual images once typed!

And how about headings? If not that, provision for variation in font size.

Adding a button (or at least a shortcut) for different font-sizes may be a good idea. I will look into whether the button is too bulky for UI.