syncfusion-maui-markdown-viewer

$npx mdskill add syncfusion/maui-ui-components-skills/syncfusion-maui-markdown-viewer

Renders Markdown content with full formatting in MAUI apps.

  • Displays Markdown from strings, files, URLs, or embedded resources.
  • Depends on Syncfusion .NET MAUI MarkdownViewer (SfMarkdownViewer) control.
  • Determines rendering based on Markdown syntax and optional CSS styling.
  • Outputs formatted Markdown as interactive UI or HTML/plain text.

SKILL.md

.github/skills/syncfusion-maui-markdown-viewerView on GitHub ↗
---
name: syncfusion-maui-markdown-viewer
description: Implements Syncfusion .NET MAUI MarkdownViewer (SfMarkdownViewer) for rendering Markdown content with full formatting support. Use when displaying markdown files, documentation, release notes, or help content in MAUI apps. Covers markdown rendering, appearance customization, CSS styling, and content sources (string/file/URL/resource).
metadata:
  author: "Syncfusion Inc"
  version: "34.1.29"
---

# Implementing Syncfusion .NET MAUI MarkdownViewer

This skill guides you through implementing the SfMarkdownViewer control, a lightweight and efficient UI component for rendering Markdown content with full formatting support in .NET MAUI applications across mobile and desktop platforms.

## When to Use This Skill

Use this skill when you need to:
- Display Markdown-formatted content in a .NET MAUI application
- Render in-app documentation, user guides, or help content
- Show release notes, changelogs, or feature updates
- Present FAQs, troubleshooting guides, or support articles
- Load Markdown from strings, local files, embedded resources, or URLs
- Customize the appearance of rendered Markdown (fonts, colors, spacing)
- Apply custom CSS styling for advanced theming
- Retrieve or convert Markdown content programmatically (to HTML or plain text)
- Create documentation viewers, note-taking apps, or content portals

## Component Overview

**SfMarkdownViewer** provides:
- **Standard Markdown Support** — Renders headings, bold/italic text, lists, tables, images, code blocks, links, and more
- **Flexible Input Sources** — Load content from strings, `.md` files, embedded resources, or remote URLs
- **Appearance Customization** — Control fonts, colors, and spacing via `MarkdownStyleSettings`
- **Custom CSS Styling** — Apply advanced theming using raw CSS rules
- **Content Retrieval** — Access raw Markdown, convert to HTML, or extract plain text
- **Smooth Scrolling** — Fluid navigation through large documents across all platforms
- **Cross-Platform** — Consistent rendering on iOS, Android, Windows, and macOS

**Typical Use Cases:**
- In-app documentation and feature tours
- Release notes and version update displays
- Help sections and support portals
- Interactive content with links
- Styled content presentation

## Documentation and Navigation Guide

### Getting Started
📄 **Read:** [references/getting-started.md](references/getting-started.md)

When you need to:
- Install the `Syncfusion.Maui.MarkdownViewer` NuGet package
- Register the Syncfusion handler in `MauiProgram.cs`
- Create your first SfMarkdownViewer control (XAML or C#)
- Add basic Markdown content to display

### Loading Content from Different Sources
📄 **Read:** [references/loading-content.md](references/loading-content.md)

When you need to:
- Load Markdown from a string variable
- Read Markdown from a local `.md` file
- Load embedded resource files from your project
- Fetch Markdown from a remote URL
- Handle async loading scenarios
- Choose the right content source for your use case

### Appearance Customization
📄 **Read:** [references/appearance-customization.md](references/appearance-customization.md)

When you need to:
- Customize heading sizes and colors (H1, H2, H3)
- Change body text font size and color
- Style table headers, data cells, and backgrounds
- Use the `MarkdownStyleSettings` class
- Match Markdown appearance with your app's theme
- Understand property-based styling approach

### Custom CSS Styling
📄 **Read:** [references/custom-css-styling.md](references/custom-css-styling.md)

When you need to:
- Apply advanced styling beyond basic properties
- Override default styles with custom CSS rules
- Style images (borders, shadows, rounded corners, sizing)
- Customize table appearance (striped rows, borders, padding)
- Control scrollbar visibility and styling
- Implement branded content designs
- Understand CSS precedence over properties

### Content Retrieval
📄 **Read:** [references/content-retrieval.md](references/content-retrieval.md)

When you need to:
- Retrieve the raw Markdown text programmatically
- Convert Markdown content to HTML format
- Extract plain text without formatting
- Use `GetMarkdownText()`, `GetHtmlText()`, or `GetText()` methods
- Process or transform Markdown content in code

### Troubleshooting
📄 **Read:** [references/troubleshooting.md](references/troubleshooting.md)

When you encounter:
- Handler not registered errors
- NuGet package installation issues
- Styles not applying correctly
- CSS not overriding properties
- Font size unit problems
- Image loading failures
- URL loading issues
- Cross-platform rendering differences

More from syncfusion/maui-ui-components-skills

SkillDescription
syncfusion-maui-accordionImplements Syncfusion .NET MAUI Accordion (SfAccordion) - a vertically collapsible panel with stacked headers for expanding/collapsing content. Use when working with accordions, collapsible panels, expandable lists, employee lists with details, or FAQ sections in .NET MAUI applications. Covers AccordionItem configuration, expand modes, and grouped content display.
syncfusion-maui-ai-assistviewImplements Syncfusion .NET MAUI AI AssistView (SfAIAssistView) for AI-powered interactive chat interfaces. Use when working with AI chat interfaces, AI AssistView, SfAIAssistView, conversational UI, or chat with AI responses. Covers integrating AI services, creating chat UIs, implementing conversation flows, managing AI requests/responses, and displaying AI suggestions.
syncfusion-maui-autocompleteImplements and configure Syncfusion .NET MAUI Autocomplete (SfAutocomplete) control for intelligent text input with suggestions. Use when implementing autocomplete, autosuggest, type-ahead search, smart search, or filtered dropdowns in .NET MAUI applications. Covers data binding, filtering modes, custom search logic, AI-powered search, multi-selection with tokens, and UI customization.
syncfusion-maui-avatar-viewImplements Syncfusion .NET MAUI Avatar View (SfAvatarView) for displaying user profile pictures, initials, or group avatars. Use when working with avatar views, profile pictures, user images, initials display, profile icons, or contact images. Ideal for implementing user profile displays, contact lists, chat interfaces, or social feeds.
syncfusion-maui-backdropImplements Syncfusion .NET MAUI Backdrop Page (SfBackdropPage) with back layer and front layer surfaces. Use when working with backdrop pages, SfBackdropPage, back layer, front layer, or reveal/conceal animations. Covers backdrop navigation patterns, header icons, corner shapes, reveal height, layer state events, and liquid glass effect.
syncfusion-maui-badge-viewImplements Syncfusion .NET MAUI Badge View (SfBadgeView) control. Use when adding badge notifications, status indicators, unread counts, or notification overlays to MAUI applications. Covers SfBadgeView setup, badge text customization, position adjustments, animations, predefined symbols, and accessibility features.
syncfusion-maui-barcode-generatorImplements Syncfusion .NET MAUI Barcode Generator (SfBarcodeGenerator) for generating machine-readable barcodes. Use when working with barcodes, barcode generation, QR codes, data matrix, EAN codes, UPC codes, Code128, or Code39. This skill covers both one-dimensional (linear) and two-dimensional (matrix) barcode symbologies with extensive customization options.
syncfusion-maui-busy-indicatorImplements Syncfusion .NET MAUI Busy Indicator (SfBusyIndicator) for showing loading states, data processing, and app activity indicators. Use when displaying loading indicators, busy animations, activity spinners, or processing feedback in .NET MAUI apps. Covers busy indicator setup, animations, and visual feedback during long-running operations.
syncfusion-maui-buttonImplements and customize Syncfusion .NET MAUI Button (SfButton) control. Use when working with MAUI buttons, SfButton implementation, button customization, or visual states. Covers button icons, background images, RTL support, Liquid Glass effects, custom button views, button styling, events, and checkable buttons.
syncfusion-maui-calendarImplements and customize Syncfusion .NET MAUI Calendar (SfCalendar) control. Use when implementing calendar functionality, date selection (single, multiple, range), or calendar views (month, year, decade, century). Covers date restrictions (min/max dates, EnablePastDates, SelectableDayPredicate), calendar customization, events (ViewChanged, SelectionChanged, Tapped), and header/footer customization.