dotnet / dotnet/docfx

Code snippet language is in HTML, but not rendering in browser

Open
#6,611 0 comments 0 reactions 0 assignees View on GitHub
template
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**Operating System**: Windows

**DocFX Version Used**: 2.43.5.0

**Template used**: default

**Steps to Reproduce**:

In my MD content I have some code snippets tagged with the programming language.

In the HTML output, I see the appropriate pre and code tags and also the class attribute:
```

 ... 

```

**Expected Behavior**:
When I view the HTML page in a browser, I would expect to see the code example displayed along with the name of the programming language. Similar to [this](https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-net-initializing-client-applications#initializing-a-public-client-application-from-code).

**Actual Behavior**:
The code example is rendering in the browser, but the name of the programming language is not being displayed.

I'm maintaining a site that someone else set up. There are a lot of code samples in the content, but I can't see the programming language for any of them. Any help would be appreciated. Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.