-
Notifications
You must be signed in to change notification settings - Fork 81
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
Discord Venue with Code Highlighting #402
Comments
Given that we just used Discord as part of the remote experience for rstudio::conf(2022), I'm pretty interested in this. I've replicated the behaviour, i.e. that the presence of the space between the backpacks and I think this would be fairly simple to implement and would have a lot in common with the Slack venue. |
Transferring some relevant URLs out of my browser tabs before I close them: https://pandoc.org/MANUAL.html#extension-fenced_code_attributes
https://spec.commonmark.org/0.30/#fenced-code-blocks
It's pretty clear Discord does not hold itself to any sort of specific standard when it comes to markdown support. If it did, the presence of a space between the backticks and the language identifier would not have the effect of printing the specified language as a bare word. But this is good context re: venues that sort of want people to post code, but that don't adhere to a proper spec. |
Discord seems to also need |
The default
gh
venue works mostly fine in discord except one minor detail:Code highlighting only works if there is no blank space between the first three backticks and the language, i.e.
this won't get code highlighting
but this would get R code highlighting
It would be great to have a venue that doesn't add that blank space. Thanks!
The text was updated successfully, but these errors were encountered: