Custom markdown tag with action
Hello, I have kinda similar use case as issue https://github.com/uiwjs/react-md-editor/issues/454.
Is there way to catch a char in actual writing with rehypeRewrite ? I want to detect when user write @ and show him options to select users to tag. Then replace text behind @ with selected option.
Thank you
I think it should be possible. @jstiburek
I tried it but it's detecting whole string not by a character. :/ I mean all text from editor, it doesn't detect when I'm typing. @jaywcjlove
It may not be easy to achieve, but would you like to listen to the input event of the input box in the preview area? @jstiburek
why preview area? shouldn't that be an editor area? or you mean listen in preview area and do action in an editor area? kinda confused @jaywcjlove
@jaywcjlove any idea here? or will I have to go another way?
thanks
This is easy to achieve if you replace @xxx in the preview area, I don't know if you think so.
@jstiburek
@jaywcjlove
I will look more into it. You mean to add tag in editor mode and check and pop submenu in editor mode right?
Oh, you confuse me, I don't understand what you want?
Do you need the following 👇 this effect?
Or 👇:
@jaywcjlove sorry for confusion, first one