-
Notifications
You must be signed in to change notification settings - Fork 1.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
feat: enhance markdown parsing to support bold text with spaces\n #8200
base: main
Are you sure you want to change the base?
feat: enhance markdown parsing to support bold text with spaces\n #8200
Conversation
Thanks for the PR, @Ovgodd! Could you explain a bit about why you're wanting to add this? Are you wanting it to behave like some other app that uses Markdown? I'm hesitant to accept this because this would go against the CommonMark spec. We're trying to follow that more closely here than we do in the web app because that makes us more consistent with other apps which also use Markdown |
Hello ! thanks for your feedback, |
@hmhealey I actually meant to post this and somehow forgotten 😢 ! I noticed that on the desktop and web app: vs mobile: @hmhealey I think the changes by @Ovgodd solve this particular problem, but since we're using commommark.js to transform markdown, I wonder if there's anything special on the web that we're doing to catch the space(s) between the double asterisks/strong that we can do on mobile. You were working on commonmark.js recently and I thought your guidance would be extremely valuable. |
I appreciate the feedback from you and your users as well. I think in this case though, I'd rather follow the standard because it makes it much easier for people to come into MM and know what to expect because it works the same as GitHub and other places that support CommonMark. We used to make this sort of change in the past, but it often caused bugs and let users crash each others' apps which is another reason we've stopped doing it. Regarding this being different from the web app, that's actually because the web app uses a different Markdown library which predates the mobile app's and a fork from before that library followed the CommonMark spec. I've wanted to have the web app use the same Markdown code as the mobile app for years now (https://mattermost.atlassian.net/browse/MM-10003) because it's spec-compliant, easier to work with, and I've got some ideas for cool features to build with it, but it's something I've never gotten to. Even though we're not accepting these changes, thanks again for your work on this though and thanks especially for your interest in helping to improve Mattermost! |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
Summary
Ticket Link
Checklist
.
Device Information
This PR was tested on:
Screenshots
Release Note