-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide cw pictures behind a summary/details #483
Conversation
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 |
from what I see, any html pasted is surrounded with |
Codecov Report
@@ Coverage Diff @@
## master #483 +/- ##
==========================================
+ Coverage 24.64% 24.87% +0.22%
==========================================
Files 65 65
Lines 7120 7196 +76
==========================================
+ Hits 1755 1790 +35
- Misses 5365 5406 +41 |
tested with #486, the md tag is not interpreted as it is inside some html. Maybe I should put plain html instead of markdown when using cw |
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 ![132] 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. |
It might not be that hard actually, we "just" have to match with the Event |
Hum, there is a small bug if the same picture with cw is present twice, clicking on the second will only activate the first one. I shall probably add some random to the generated id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning and the image it hides doesn't have exactly the same size on my computer, but I think it is because of experiments I made with the editor.
Works perfectly otherwise. Thank you!
it's not from your experiments. It seems to came from the rule adding a 3em margin on |
This is an attempt at fixing #254
Sadly it doesn't work with the new editor, as html tags are put in a
<code>
bloc