-
Notifications
You must be signed in to change notification settings - Fork 130
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
Exiting out of the code module #487
Comments
Getting started with this!!! |
@jywarren @emilyashley @ebarry @Shreyaa-s @Shulammite-Aso @NitinBhasneria |
Great finding @keshav234156 ! |
Hi @keshav234156 i'm also not able to reproduce the part where code disappears after switching to markdown and back. |
Thanks for digging into this. I think sharing GIFs is going to be helpful here to narrow in on the bug. Also, similarly to the debugging going on in #457, perhaps we can manage to reproduce this in a test environment in either https://github.com/bevacqua/domador or https://github.com/bevacqua/megamark tests? Finally, i noticed a convention in Slack that in order to get out, you press the -> right-arrow key. What are some conventions we could rely on to "get out of a state" here, not only for code but for other types?
Any others? Thanks, all! 🎉 |
And the code would disappear .That because we in markdown mode we need to mention the type of code eg javascript , html |
I think a more standard way would be to press the hotkey or press icon if it's already present in that module. |
Try this // Code could go here
var myVariable = 4;
var funtion() |
@Shreyaa-s Please see the above comment in markdown mode by clicking on Edit button in top right corner as Comment has been processed. |
1 similar comment
@Shreyaa-s Please see the above comment in markdown mode by clicking on Edit button in top right corner as Comment has been processed. |
I think the issue is here is that the part inside the code module is processed. The code does not disappear when we write code like the one you mentioned. But if we were to write HTML with tags, the tags would be processed. If we mention html/xml in the beginning, then tags are processed partially and some snippets disappear, the Steps to reproduce:
Please verify the same. I'm putting up GIFs for reference. One possible solution is not to process this code. We can only look for the end of the module and leave that part as it is. In my opinion, from safety standards, it would be better if we containerize it and not let it interact with our editor. By containerize, here, I mean, treat it as a separate shell that we don't access, just store and display, and not let it access us either. That's just an idea. Hope this could be of help :) |
@Shreyaa-s The cause of problem 3 ( #487 (comment) ) is that in code module, tag is
In this case, I think we should have a different wrapping module for every module? |
Please see the above comment in markdown mode by clicking on Edit button in top right corner as Comment has been processed. |
Hmm, maybe I misunderstand but in theory ``` is supposed to transform to either the I believe the correct syntax is: or But not: (btw i found it easier to share a screenshot rather than trying to write markdown into markdown 😂 -- or to use |
Right now there is no way by which we can start a new paragraph after we have used the code module. We can solve this such that pressing the respective hotkey exits the module like in case of quoted text.
The text was updated successfully, but these errors were encountered: