syncfusion/aspnetmvc-ui-components-skills · Archived

syncfusion-aspnetmvc-markdown-converter

Guides implementation of the Syncfusion ASP.NET MVC Markdown Converter (Syncfusion.EJ2.MVC5). Use this skill when the user needs to convert Markdown text to HTML, use the MarkdownConverter utility, configure MarkdownConverterOptions (async, gfm, lineBreak, silence), or integrate the Markdown Converter with the Syncfusion Rich Text Editor for live preview or side-by-side editing in ASP.NET MVC. Trigger when user mentions markdown to HTML conversion, MarkdownConverter, toHtml, markdown preview, o…

First seen Jul 23, 2026

Installation

$ npx skills add syncfusion/aspnetmvc-ui-components-skills --skill syncfusion-aspnetmvc-markdown-converter

Summary

  • Guides implementation of the Syncfusion ASP.NET MVC Markdown Converter (Syncfusion.EJ2.MVC5).
  • Use this skill when the user needs to convert Markdown text to HTML, use the MarkdownConverter utility, configure MarkdownConverterOptions (async, gfm, lineBreak, silence), or integrate the Markdown Converter with the Syncfusion Rich Text Editor for live preview or side-by-side editing in ASP.NET MVC.
  • Trigger when user mentions markdown to HTML conversion, MarkdownConverter, toHtml, markdown preview, or RTE markdown mode in an ASP.NET MVC project.

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from syncfusion/aspnetmvc-ui-components-skills · top by installs.

npx skills add syncfusion/aspnetmvc-ui-components-skills

Browse all from syncfusion/aspnetmvc-ui-components-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch master
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version34.1.29
More metadata
author
Syncfusion Inc
version
34.1.29
category
File Viewers & Editors

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 5,451 B
  • docs SUMMARY.md 592 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

Syncfusion ASP.NET MVC Markdown Converter

The Syncfusion ASP.NET MVC Markdown Converter is a lightweight client-side utility (included with the Syncfusion.EJ2.MVC5 NuGet package) that transforms Markdown text into clean, semantic HTML. It supports all common Markdown elements — headings, lists, tables, links, images, and inline styles — and integrates seamlessly with the Syncfusion Rich Text Editor for live editing and preview workflows in ASP.NET MVC applications.


Navigation Guide

Getting Started

📄 Read: [references/getting-started.md](references/getting-started.md)

  • Installing the Syncfusion.EJ2.MVC5 NuGet package
  • Referencing EJ2 scripts and styles in _Layout.cshtml
  • Running a basic Markdown-to-HTML conversion via JavaScript
  • Required CSS and theme setup

toHtml API

📄 Read: [references/tohtml-api.md](references/tohtml-api.md)

  • ej.markdownConverter.toHtml method signature and parameters
  • Supported Markdown elements (headings, lists, tables, links, images, inline styles)
  • Return value and usage patterns
  • Simple conversion code examples in Razor/JavaScript

Configurable Options

📄 Read: [references/configurable-options.md](references/configurable-options.md)

  • MarkdownConverterOptions configuration object
  • async — asynchronous conversion for large content
  • gfm — GitHub Flavored Markdown support
  • lineBreak — single line breaks as <br> elements
  • silence — suppress errors on invalid Markdown
  • When and why to use each option

Rich Text Editor Integration

📄 Read: [references/richtexteditor-integration.md](references/richtexteditor-integration.md)

  • Combining the Syncfusion RTE with the Markdown Converter in ASP.NET MVC
  • Setting EditorMode(EditorMode.Markdown) on the RTE HTML helper
  • Live preview on keyup using ej.markdownConverter.toHtml
  • Full preview toggle pattern
  • Side-by-side Splitter layout in Razor views
  • Toolbar configuration for Markdown mode

Quick Start

Add the NuGet package and run a minimal conversion in a Razor view:

NuGet Package Manager Console:

Install-Package Syncfusion.EJ2.MVC5

Controller (HomeController.cs):

public ActionResult Index()
{
    ViewBag.value = "# Hello World\nThis is **Markdown** text.";
    return View();
}

View (Index.cshtml):

@(Html.EJS().RichTextEditor("editor")
    .EditorMode(Syncfusion.EJ2.RichTextEditor.EditorMode.Markdown)
    .Value(ViewBag.value)
    .Render())

<div id="preview"></div>

<script>
    document.addEventListener('DOMContentLoaded', function () {
        var markdownContent = '# Hello World\nThis is **Markdown** text.';
        var htmlOutput = ej.markdownConverter.toHtml(markdownContent);
        document.getElementById('preview').innerHTML = htmlOutput;
    });
</script>

Common Patterns

Convert with all options enabled

var html = ej.markdownConverter.toHtml(markdownContent, {
    async: true,      // Non-blocking for large content
    gfm: true,        // GitHub Flavored Markdown
    lineBreak: true,  // Treat single newlines as <br>
    silence: true     // Suppress parse errors
});

Live preview on user input

document.getElementById('markdownInput').addEventListener('keyup', function () {
    document.getElementById('preview').innerHTML =
        ej.markdownConverter.toHtml(this.value);
});

Integrate with Syncfusion RTE in Markdown mode

Controller:

public ActionResult Index()
{
    ViewBag.value = "# Hello\nType **Markdown** here.";
    return View();
}

View (Index.cshtml):

@using Syncfusion.EJ2.RichTextEditor

@(Html.EJS().RichTextEditor("editor")
    .EditorMode(EditorMode.Markdown)
    .Height("400px")
    .Value(ViewBag.value)
    .Render())

Key Options

Option Type Default Purpose
async boolean false Async conversion for large payloads
gfm boolean true GitHub Flavored Markdown support
lineBreak boolean false Single newlines → <br>
silence boolean false Skip invalid Markdown instead of throwing

Common Use Cases

  • Static content rendering — Convert user-authored Markdown from a textarea or API into HTML for display within an MVC view
  • Live editor preview — Pair with Syncfusion RTE in Markdown mode for real-time HTML preview in a Razor view
  • Side-by-side editing — Use Syncfusion Splitter to show editor and rendered HTML simultaneously in a Razor layout
  • CMS / documentation tools — Process Markdown stored in databases or files and render it inside ASP.NET MVC views