This repository contains C# code examples referenced in the Aspose.HTML for .NET documentation. These gists demonstrate practical ways to load, read, create, modify, and save Markdown documents programmatically in C# using the powerful Aspose.HTML for .NET API.
The gists in this collection cover:
- Parse Markdown files into a syntax tree (AST) with
MarkdownParser. - Traverse nodes and extract headings (text + hierarchy levels).
- Extract tables from Markdown using
TreeWalkerand node filters. - Modify Markdown AST nodes (replace emphasis text, edit headings).
- Create Markdown documents programmatically from scratch.
- Generate multiple sections in a loop with headings and paragraphs.
- Build ordered and unordered lists, including compact list generation.
- Add bold, italic, and bold-italic text (emphasis nodes).
- Insert blockquotes, inline code, and fenced code blocks.
- Update paragraph content and remove list items in existing documents.
- Work with links and images inside Markdown content.
Each example is self-contained and ready to use.
If you need practical C# snippets for parsing, creating, and editing Markdown, this gist gives you concise, production-style examples with the Aspose.HTML for .NET API. Use it as a quick reference to build Markdown generators, editors, and analyzers in .NET projects.
These samples support the tutorials in the Markdown Processing and Manipulation in C# chapter of the official documentation.
- Free Support Forum – Aspose.HTML
- Blog – Aspose.HTML Product Family
- API Reference – Aspose.HTML for .NET
- NuGet Package – Aspose.HTML for .NET
- Install the latest Aspose.HTML for .NET via NuGet.
- You can download a free trial of Aspose.HTML for .NET and use a temporary license for unrestricted access.
- Explore the gists in this repository and copy the relevant code to your project.
- Configure paths, settings, and inputs to suit your environment.
- .NET Platforms: .NET 5.0, .NET Framework 4.6.1+, or .NET Core 2.0+
- Supported OS: Windows, Linux, macOS
- Aspose.HTML for .NET