Some interaction issues #354
Replies: 4 comments 8 replies
-
#1 and #3 are good points. I think we can investigate how to improve this behavior. They're all related to the inner editor of milkdown. I plan to extract them into a common component. #2 You can type #4 I think it's something nice to have, basically it's a custom view for heading node. Will give it a try when I have time. It's also related to something I want to do before. Which is that create some custom views for nodes to make milkdown can behave like Typora. |
Beta Was this translation helpful? Give feedback.
-
New issue found, when we are using inline code, for example, it's hard to insert either |
Beta Was this translation helpful? Give feedback.
-
That's a long story. In short it's designed to do so to make sure mixing marks can be transformed to markdown correctly. Maybe play with the transformer and commonmark module can help you understand what I'm saying |
Beta Was this translation helpful? Give feedback.
-
Seems TaskList now is clickable in docs? I think that should be read-only when milkdown is used as a renderer framwork? And seems it's a good idea to provide a API for TaskList, like providing a reference to all TaskList item in the documents, and provide a event for React/Vue/Svelte. It's not complicated job, and I'm glad to do this in months.♥ |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if these issues comes from my misunderstand or it is actually a issue so I post them in discussions for a friendly attitude. 🧐 Sorry for troubling anyone for my fault.
If I create a formula block, and I finished editing this one, I can escape by Mod-Enter or mouse and jump to the next line. But currently I can't find out a way with keyboard only to move my cursor above the formula block. I wonder if I missed something or it's a issue in interaction indeed.
There is a keymap Mod-E for inline code, which is neat for advanced users. But for people who has no or just Typora or Marktext experiences, they prefer to enter ``` and close it like inserting code blocks in milkdown to insert a inline code. Is there a way to implentment this feature, or it's already exists and I missed it again?
When I was using Marktext, I can delete a empty form by just a backspace, but it seems complicated in milkdown. Maybe it's another feature already in the doc. Currently I'm not familiar with Prosemirror, I wonder if we can delete a form or a formula blocks (seems like marmaid too) like other editors do? Also, is it a better interaction design? Should we make it into milkdown?
I have made a PR about it, there is currently 2 ways to do this in default config. But it can be improved more than that. Typora and Marktext provided a good way to do this: navigate to the front of this line, the editor will show you a "#" icon to mention you this is a heading block, backspace, and we are done, it's plain text now. It's an intuitive interactive design. I wonder if we can do this in milkdown?
🙏Hope this is not a waste of your precious time, and sorry for discuss it before make a PR because I'm new to projects like this. If they are indeed a improve for this project, I would make a PR if I can(hopefully).✨
Beta Was this translation helpful? Give feedback.
All reactions