Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[6.x] Use CommonMark For Mailable #30982
This switches Markdown Mailable parsing to CommonMark instead of Parsedown. The main reason for this is better granularity of security related features in CommonMark, which allows us to prevent unsafe links in user input (a user input with the content: "a") without needing to prevent all HTML tags in general which would break our current mailable system.
I think it would be good to do this basically security related change on 6.x because it is an LTS.
It's worth noting that
The correct syntax, of course, is
There are also other small nuanced differences. Parsedown translates
Otherwise you could never start a sentence with a hashtag. This was something that Parsedown incorrectly rendered.
Edit: just realized you probably meant the same by putting