Skip to content

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

Merged
mjbvz merged 1 commit intomicrosoft:masterfrom
atitoa93:issue/61240/support-c#-markdown-syntax-highlighting
Oct 19, 2018
Merged

Support C# in markdown preview code block syntax highlighting.#61291
mjbvz merged 1 commit intomicrosoft:masterfrom
atitoa93:issue/61240/support-c#-markdown-syntax-highlighting

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