You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On above example. csharp fenced code block is rendered with "C#" header div region.
Describe the solution you'd like
Add custom CodeBlockRenderer implementation to support following features.
If language is specified (e.g. csharp). Display normalize language name at codeHeader (e.g. C#).
Change copy button location/style to learn.microsoft.com style.
If language and filename is specified (e.g.: csharp Sample.cs). Display filename at codeHeader (e.g.: Sample.cs) instead of language name. (Some other markdown processor support this kind of features)
Is your feature request related to a problem? Please describe.
I want to use
learn.microsoft.com
stylecodeHeader
forFenced Code Block
syntax.Samples Image:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis/aspnetcore-openapi?view=aspnetcore-9.0&tabs=visual-studio#add-and-configure-openapi-document-generation
On above example.
csharp
fenced code block is rendered with "C#" header div region.Describe the solution you'd like
Add custom
CodeBlockRenderer
implementation to support following features.csharp
). Display normalize language name atcodeHeader
(e.g.C#
).copy
button location/style tolearn.microsoft.com
style.csharp Sample.cs
). Display filename atcodeHeader
(e.g.: Sample.cs) instead of language name. (Some other markdown processor support this kind of features)Additional context
trailing string after
Fenced code block
is defined asinfo string
by CommonMark Spec.Thought
info string
format is not standardized.See: https://talk.commonmark.org/t/code-blocks-extension-for-filenames-and-line-numbers/536/9
The text was updated successfully, but these errors were encountered: