I’m preparing a Discourse instance using SSO and it’s important for us to support the existing usernames which have underscore&dashes on any position. I have managed to do the regex updates on Discourse code for this to work, including making the username autocomplete on the composer to play well with it.
However, I’m having trouble with the markdown parser which I’m not familiar with. Specifically, usernames with underscores in the first and last position of a @mention makes it italic, as per markdown specs. So currently a post with something like
@_username_ becomes @username (and not linked).
Can someone give me some pointers on where to starting looking to customize this? I’m new to Discourse so any help is appreciated. Thanks in advance!