RickStrahl/Westwind.AspNetCore.Markdown

Can Westwind pars the C# codes?

kevinsalimi opened this issue · 0 comments

Firs of all, Thank you for your great repository. It's really awesome.
I use triple backticks CSharp to show some C# code but as you can see in the picture which is attached, it doesn't work.

Is it normal? Or should I add some configs?

Here is my config:

services.AddMarkdown(config =>
            {
                config.ConfigureMarkdigPipeline = builder =>
                {
                    builder.UseEmphasisExtras(Markdig.Extensions.EmphasisExtras.EmphasisExtraOptions.Default)
                        .UsePipeTables()
                        .UseGridTables()
                        .UseAutoIdentifiers(AutoIdentifierOptions.GitHub)
                        .UseAutoLinks()
                        .UseAbbreviations()
                        .UseYamlFrontMatter()
                        .UseEmojiAndSmiley(true)
                        .UseListExtras()
                        .UseFigures()
                        .UseTaskLists()
                        .UseCustomContainers()
                        .UseBootstrap()
                        .UseGridTables()
                        .UseGenericAttributes();
                };
            });

Any help would be appreciated.

Capture