Skip to content
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

Support C# in markdown preview code block syntax highlighting. #61291

Conversation

atitoa93
Copy link
Contributor

Fixes #61240

Seems the problem coming from highlight.js package. Adding this snippit solved the problem.

if (lang && lang.toLocaleLowerCase() === 'c#') {
    lang = 'cs';
}

@mjbvz mjbvz added this to the October 2018 milestone Oct 19, 2018
@mjbvz mjbvz merged commit 6944a22 into microsoft:master Oct 19, 2018
@mjbvz
Copy link
Collaborator

mjbvz commented Oct 19, 2018

Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for C# as a language identifier in markdown preview code block syntax highlighting
2 participants