It makes me notice that one can copy almost any HTML in the editor, which is a bit weird, and full of bug (and maybe of security risks?). I think we should add a listener for onpaste and filter what is pasted (to only allow images or simple text)
from what I see, any html pasted is surrounded with <code>. There are no more risks than with the previous editor. Filtering/modifying what is pasted might be nice in some situations, sometime one just want to put some html elements not supported by plain markdown
I think Markdown in HTML never worked. At least it doesn’t on GitHub:
**hello** I'm in a `div`
So yes, going with HTML for everything seems to be a better solution. Ideally, we should have some kind of custom Markdown like ! where 132 is the idea of a media, and then Plume just replaces it with the full HTML code, but this is probably quite hard to achieve.
User should input something like ![some title](123)
If the corresponding picture has a cw, it display this
And after clicking on it, it shows the picture (this is a toggle, so clicking again hide it back).