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
bugdown: Buggy local echo when ending with at-mention. #4074
Comments
Hello @zulip/server-markdown members, this issue was labeled with the area: markdown label, so you may want to check it out! |
As far as I got, this happens whenever |
@zulipbot claim |
Congratulations, @mahimg, you've successfully claimed your first issue! Since you're a new contributor, you now have pull (read-only) access to this repository. Please review our code contribution guidelines and sign the Dropbox Contributor License Agreement before opening any pull requests for any issues that you're working on. Also, if you haven't done so already, please join us on the Zulip development server at chat.zulip.org! Our community of developers use chat.zulip.org as our primary communication forum for developing Zulip; you can read more about the chat.zulip.org community in our documentation. Note: Depending on your notification settings, granting you the permission in GitHub's model that allows you to be assigned issues by zulipbot may result in making you a "watcher" on this repository, which means that you'll get notifications for every issue and pull request in this repository; for a large repository like zulip/zulip, that means receiving over 100 emails per day. If you don't want to receive notifications unless you're actually involved with the issue (which is usually the right choice for large projects), you should unwatch this repository. |
Great, thanks @mahimg! |
Hello @mahimg, you claimed this issue to work on it, but this issue and any referenced pull requests haven't been updated for a week. Are you still working on this issue? If so, please update this issue by leaving a comment on this issue to let me know that you're still working on it. Otherwise, I'll automatically remove you from this issue in 3 days. If you've decided to work on something else, simply comment Thank you for your valuable contributions to Zulip! |
@zulipbot I am working on this. |
Hello @mahimg, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over ten days. You can reclaim this issue or claim any other issue by commenting Thanks for your contributions, and hope to see you again soon! |
@zulipbot claim |
It seems that in marked.js the Parser.parse static method throws off the local echo. I realized that when it is called from the marked function, if you explicitly pass in the renderer arg as opt.userMentionHandler, than the markup is more accurate. I will have to look into the original implementation of the marked.js and see how this works. I am not sure if that arg is required for the static method and how the opts/options are used in this. |
Should be fixed in ec669a0 |
Not sure what the underlying issue is, but a reproducer is
The local echo should have 15 copies of the
@mention
replacing all thestuff
.The text was updated successfully, but these errors were encountered: