Create, edit, format, and convert Markdown (.md) documents using Syncfusion Markdown for .NET. Use this skill for Markdown processing and document automation when the user asks to generate Markdown files, modify or format Markdown content, build structured documentation programmatically, automate Markdown workflows, or convert Markdown to other formats using C# code or CSX execution.
Create, edit, format, and convert Markdown (.md) documents using Syncfusion Markdown for .NET. Use this skill for Markdown processing and document automation when the user asks to generate Markdown files, modify or format Markdown content, build structured documentation programmatically, automate Markdown workflows, or convert Markdown to other formats using C# code or CSX execution.
metadata
{"author":"Syncfusion Inc","version":"34.1.29"}
Markdown Document Processing
Overview
Create, edit, and convert Markdown (.md) files using the Syncfusion Markdown Library.
This skill supports two operational modes — generating C# code for the user's project or executing tasks directly through a CSX script.
User: "Show me how to create a Markdown document with a table"
Result: C# code snippet displayed (no files created)
Example 2: Execute Task (Mode 2)
User: "Create a Markdown file at output/report.md"
Result: Physical file created at specified path
Two Modes — Choose Based on User Intent
Before choosing a mode, infer what the user wants to accomplish:
Mode 1: Generate C# Code for the User's Project (default)
Use this mode when the user wants to view, write, review, refactor, or modify C# code related to Markdown processing.
Trigger keywords: "show me how", "how to", "how can I", "how do I", "provide code", "provide an example", "give an example", "demonstrate", "code snippet", "sample code", "example", "sample", "give me", "show me", "Program.cs", "example code", "generate code for", "codesnippet"
Workflow:
Step 1 — Detect the Application Type and Suggest the Correct NuGet Package(s)
Inspect the workspace project files (.csproj, web.config, App.config, Startup.cs, Program.cs, etc.) and use the detection signals table in references/nuget-packages.md to identify the application type.
Look up the correct package(s) from references/nuget-packages.md based on the detected app type and tell the user to install them before generating any code.
Step 2 — Generate Code from Reference Files Only
Do NOT invent, guess, or suggest any API, method, property, class, or namespace not explicitly present in the reference files.
Read the relevant references/*.md file(s) for the requested feature
Build C# code strictly from the APIs and snippets found in those files
Select the correct snippet variant based on the app type detected in Step 1:
Windows-specific apps (WinForms, WPF, .NET Framework Console, ASP.NET MVC5) → use Windows-specific snippets
Mode 2: Execute via CSX Script (does not modify project files)
Use this mode only when the user explicitly requests execution, file generation, or a fully produced output (such as a completed md file).
Trigger keywords: "create a markdown document", "make a markdown file", "generate markdown", "parse markdown", "convert markdown to HTML", "open", "edit", "modify", "change" a .md file, "without modifying my project", "run a csx script", or when the user provides a file path (e.g., output/report.md).