markdig icon indicating copy to clipboard operation
markdig copied to clipboard

Visual Studio markdown engine

Open Dmitresso opened this issue 1 year ago • 3 comments

Hello. Visual Studio added markdown support in version 2022 release 17.5. Changelog above tells decision was made based on the results of a vote on developer community forum (topic from 08.10.2018). But I have not succeeded in finding out what engine is working under the hood, is it commonmark-compliant? GFM support? I think there is a high probability it's based on markdig but it's only suggestion.

Dmitresso avatar Nov 09 '24 19:11 Dmitresso

But I have not succeeded in finding out what engine is working under the hood, is it commonmark-compliant? GFM support? I think there is a high probability it's based on markdig but it's only suggestion.

I don't know the details, but the default Markdown Editor in VS is using Markdig (the assembly is in some sub folders in VS install)

I believe it might be a derived work from @MadsKristensen v1 version, which now has a v2 version with MarkdownEditor2022

xoofx avatar Nov 12 '24 17:11 xoofx

I've just installed VS LTSC 17.4 + last MarkdownEditor2022 2.0.169 to compare with my VS 2022 17.10.3 default markdown editor. There are Microsoft.VisualStudio.Markdown.Platform and MarkdownEditor2022 in %temp% respectively. This is it at first glance on hierarchy.

Dmitresso avatar Nov 12 '24 18:11 Dmitresso

Hi @Dmitresso I'm working on Markdown support in Visual Studio. VS 17.12 uses Markdig.Signed package version 0.30.2 We're using the following pipeline configuration

            new MarkdownPipelineBuilder()
                .UseAdvancedExtensions()
                .UsePragmaLines()
                .UsePreciseSourceLocation()
                .UseYamlFrontMatter()
                .UseEmojiAndSmiley()
                .UseEmphasisExtras()
                .UseTaskLists()
                .Build();

AmadeusW avatar Dec 17 '24 18:12 AmadeusW