-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
[FIX] Support complete markdown specification #7454
base: develop
Are you sure you want to change the base?
Conversation
…eded on the CSS and in the highlight code probably
I'm not sure the build failure has anything to do with my changes. What can I do to fix that? |
…nto develop-markdown
I pulled and merged the changes from Rocket.Chat/develop, I hope it will help with the build failure. |
The build failure is now related to badwords management. |
Mmmmmm, for some reason, it worked on my local tests, but not when deployed. |
Hello @sampaiodiego @rodrigok and @MartinSchoeler, Is there anything needed from my side? |
Really hoping this change makes it in. Table support would be amazing
…On Aug 9, 2017 10:50 PM, "Romain Bazile" ***@***.***> wrote:
Hello @sampaiodiego <https://github.com/sampaiodiego> @rodrigok
<https://github.com/rodrigok> and @MartinSchoeler
<https://github.com/martinschoeler>,
Is there anything needed from my side?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7454 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA1QDwF-p9UY4ZIhEzDAgqO8yCeTIeWuks5sWasHgaJpZM4OSDiD>
.
|
@JSzaszvari Agreed! :-D |
Keen to find out why this one has not been looked at? This would be a super helpful, especially the tables and lists @geekgonecrazy @graywolf336 any chance you can let @gromain know what needs to be done if anything to move forward with this? Thanks |
Are you going to add support for nested blockquotes? E.g:
|
Also - slack added a simple check to disable blockquoting with emoticons like |
@Lemmmy I forgot the nested blockquote support! Regarding the emoticons, I'll have to have a look how to deal with this. It doesn't sound impossible though. It works for now if you escape the first |
@RocketChat/core can we try and get this lined up for 0.60.0 ? Better markdown support would be great to have |
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.
Hey @gromain! It seems a great work! I'm motivated to help merge this on next release. Can you update your PR with our current base code from develop branch?
…eded on the CSS and in the highlight code probably
I guess we can close this PR now. To me it doesn't make sense since there is already work that was done in #7852 (and #6158). It would be nice if the coordination on this project was more open and more communicative. I would have like to know when I asked in RocketChat/feature-requests#642 what were the thoughts of the community on the integration of Markdown. Anyway, I'll close this PR in a week if there is no further interest. |
agreed. hoping that someone in @RocketChat/core has something to say considering this PR was opened a long time before the other markdown stuff was done and merged. someone could have at least told the poor guy working on this one not to bother if there was plans that weren't made public. instead multiple calls for a Comment went completely ignored.. |
Rocket.Chat is a great messaging app, but really, it would benefit greatly for more openness from the devs and a more open communication. Closing this PR now. |
Sorry guys. I'd also love to improve our markdown support. Being able to add support for additional markdown would be amazing. I don't think another option has been chosen. We are constantly fighting to keep xss vulnerability from popping up. Anything that involves HTML in the message in any form runs a risk of being exploited. Also we just finished releasing 0.59.0 and we are just now looking at PR's to merge into 0.60.0 With a lot of UI changes in 0.59.0 it took a lot of our time. @rocketchat/core |
@geekgonecrazy let me know if there is any interest and feedback, I will reopen it. |
@gromain Sorry about that, we was busy with our latest release and we delayed this review. Please reopen it and I will start the review. First question, did you change how bold and italic are handled? |
Hey guys/girls, etc, etc. having a small issue with the Chat app, desktop (just a wrapper app...) and web versions. When typing the following: when sending/posting it in the chat, it will display as follows. (note: only name and date/time is marked out, due to company specs, hosted locally on internal servers, etc, etc..) Both these images are of the exact same "data"/"text" please explain what this is for and/or if it is meant to be avalible as a feature, is a bug, or if it is encryption of some sorts, what is this data and how do I undo it??? or disable this if it is a bug.. This problem can be repeated and will always reproduce the same "output/display data" if the same "input/typed data" is entered again. Possible Feature Suggestion: Inline encryption, would be cool as well for say a group, channel or user2user chat... I love the app by the way and would like to contribute / get involved as well. Thank You, Dean :) Initial Issue Report: https://stackoverflow.com/questions/48930326/unkown-data-in-chat-please-explain-rocket-chat-only/ |
Romain Bazile seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
@RocketChat/core
Closes RocketChat/feature-requests#642 Support full Markdown specification
Also solves:
#7240: Special characters escape with \ (_ ` etc...)
#6719 #6586: Markdown link with & sign is broken
#5218: Italicizing links breaks them
#4346: Support for markdown tables
Also, it may simplify work on #1593: support for better code highlight
This PR adds full Markdown support through markdown-it. It also supports sub- and super-scripts and checkboxes (via markdown-it plugins).
I believe some cleanup is needed in the CSS file(this one has been moved out of the
base.css
file into its ownmarkdown.css
. The class has been switched from.body
to.markdown-body
inmessage.html
).A couple of things are broken right now:
>>>
to start a blockquote~
(works with~~
)*
(works with**
or__
)How do we deal with those style changes (bold and strikethrough and blockquote)?
Screenshots