开源软件名称(OpenSource Name):xoofx/markdig开源软件地址(OpenSource Url):https://github.com/xoofx/markdig开源编程语言(OpenSource Language):C# 100.0%开源软件介绍(OpenSource Introduction):MarkdigMarkdig is a fast, powerful, CommonMark compliant, extensible Markdown processor for .NET.
You can try Markdig online and compare it to other implementations on babelmark3 Features
If you are looking for support for an old .NET Framework 3.5 or 4.0, you can download Markdig Third Party Extensions
Documentation
While there is not yet a dedicated documentation, you can find from the specs documentation how to use these extensions. In the meantime, you can have a "behind the scene" article about Markdig in my blog post "Implementing a Markdown Engine for .NET" DownloadMarkdig is available as a NuGet package: Also Markdig.Signed NuGet package provides signed assemblies. UsageThe main entry point for the API is the By default, without any options, Markdig is using the plain CommonMark parser: var result = Markdown.ToHtml("This is a text with some *emphasis*");
Console.WriteLine(result); // prints: <p>This is a text with some <em>emphasis</em></p> In order to activate most of all advanced extensions (except Emoji, SoftLine as HardLine, Bootstrap, YAML Front Matter, JiraLinks and SmartyPants) // Configure the pipeline with all advanced extensions active
var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();
var result = Markdown.ToHtml("This is a text with some *emphasis*", pipeline); You can have a look at the MarkdownExtensions that describes all actionable extensions (by modifying the MarkdownPipeline) BuildIn order to build Markdig, you need to install .NET 6.0 LicenseThis software is released under the BSD-Clause 2 license. BenchmarkingThe latest benchmark was collected on April 23 2022, against the following implementations:
DonateIf you are using this library and find it useful for your project, please consider a donation for it! CreditsThanks to the fantastic work done by John Mac Farlane for the CommonMark specs and all the people involved in making Markdown a better standard! This project would not have been possible without this huge foundation. Thanks also to the project BenchmarkDotNet that makes benchmarking so easy to setup! Some decoding part (e.g HTML EntityHelper.cs) have been re-used from CommonMark.NET Thanks to the work done by @clarkd on the JIRA Link extension (https://github.com/clarkd/MarkdigJiraLinker), now included with this project! AuthorAlexandre MUTEL aka xoofx |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论