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

C# Code Fence - Inconsistent Highlighting #121

Open
Foxtrek64 opened this issue Sep 17, 2024 · 0 comments
Open

C# Code Fence - Inconsistent Highlighting #121

Foxtrek64 opened this issue Sep 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Foxtrek64
Copy link

Foxtrek64 commented Sep 17, 2024

Describe the bug
According to the PrismJS website, the valid "languages" for C# code are csharp, cs, and dotnet. When editing a markdown file with a cs or dotnet codeblock, syntax highlighting is not applied.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new markdown file.
  2. Add a code fence with the language as cs.
  3. Add some valid content to the code fence.
  4. Notice how syntax highlighting is not applied.
  5. Change code fence language to csharp.
  6. Notice how syntax highlighting applies.

Expected behavior
Using any of csharp, cs, or dotnet should result in the same syntax highlighting.

Screenshots
cs
image
csharp
image
dotnet
image

@Foxtrek64 Foxtrek64 added the bug Something isn't working label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant