agentsclimarketplace

Syncfusion vue markdown converter

Skill syncfusion/vue-ui-components-skills/skills/syncfusion-vue-markdown-converter

Implement the Syncfusion Vue Markdown Converter to convert Markdown text into clean HTML. Use this when converting Markdown to HTML in Vue, integrating a live Markdown preview, configuring GFM or line break options, or working with MarkdownConverter.toHtml() and MarkdownConverterOptions. This skill covers the @syncfusion/ej2-markdown-converter package and Markdown Editor integration with side-by-side HTML preview.From its SKILL.md

Install
npx -y skills add syncfusion/vue-ui-components-skills --skill syncfusion-vue-markdown-converter

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.3 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

Implementing Syncfusion Vue Markdown Converter

The Syncfusion Vue Markdown Converter is a lightweight utility that transforms Markdown-formatted text into clean, semantic HTML. It is typically used alongside the Syncfusion Rich Text Editor (in Markdown mode) to provide a live preview of rendered content.

When to Use This Skill

  • Convert Markdown text to HTML in a Vue application
  • Display a live preview of Markdown content as the user types
  • Configure conversion behavior (GFM support, line breaks, async mode, error suppression)
  • Build a side-by-side Markdown editor and HTML preview layout
  • Integrate MarkdownConverter.toHtml() with the Syncfusion Rich Text Editor

Documentation and Navigation Guide

Getting Started

πŸ“„ Read: references/getting-started.md

  • Vue CLI / Vite setup and project creation
  • Installing @syncfusion/ej2-markdown-converter and @syncfusion/ej2-vue-richtexteditor
  • CSS imports for the material3 theme
  • Required module injection (MarkdownEditor, Image, Link, Toolbar, Table)
  • Running the application

Convert Markdown to HTML β€” toHtml API

πŸ“„ Read: references/tohtml-api.md

  • MarkdownConverter.toHtml() method signature
  • Basic usage example (standalone, no editor required)
  • Supported Markdown elements (headings, lists, tables, links, images, inline styles)
  • Using the return value in Vue templates

Configurable Options

πŸ“„ Read: references/configurable-options.md

  • MarkdownConverterOptions interface
  • async β€” asynchronous conversion for large content
  • gfm β€” GitHub Flavored Markdown support (default: true)
  • lineBreak β€” convert single line breaks to <br> (default: false)
  • silence β€” suppress errors on invalid Markdown (default: false)
  • Full example passing options to toHtml()

Rich Text Editor Integration

πŸ“„ Read: references/richtexteditor-integration.md

  • Splitter-based side-by-side editor and preview layout
  • Configuring ejs-richtexteditor in Markdown editorMode
  • Real-time preview using onChange and updateValue()
  • Toolbar configuration for Markdown editing
  • MarkdownFormatter for custom Markdown syntax
  • Custom preview toggle button (fullPreview pattern)
  • Mobile/device orientation handling with Browser.isDevice

Quick Start

Install packages and wire up the converter in three steps:

1. Install packages:

npm install @syncfusion/ej2-markdown-converter
npm install @syncfusion/ej2-vue-richtexteditor

2. Import CSS in src/App.vue or src/main.js:

import '@syncfusion/ej2-base/styles/material3.css';
import '@syncfusion/ej2-richtexteditor/styles/material3.css';

3. Convert Markdown to HTML:

import { MarkdownConverter } from '@syncfusion/ej2-markdown-converter';

const markdown = '# Hello World\nThis is **Markdown** text.';
const html = MarkdownConverter.toHtml(markdown);
console.log(html);
// Output: <h1>Hello World</h1><p>This is <strong>Markdown</strong> text.</p>

Common Patterns

Pattern 1: Standalone Conversion (No Editor)

When you only need to convert a Markdown string to HTML without an editor UI:

import { MarkdownConverter } from '@syncfusion/ej2-markdown-converter';

const html = MarkdownConverter.toHtml(markdownString);
document.getElementById('preview').innerHTML = html;

Pattern 2: Live Preview on Keyup

Convert on every keystroke inside a Rich Text Editor textarea:

markDownConversion() {
  const textarea = this.rteObj.contentModule.getEditPanel();
  const previewEl = document.getElementById('html-view');
  previewEl.innerHTML = MarkdownConverter.toHtml(textarea.value);
}

Pattern 3: Conversion with Options

Disable GFM and enable line-break conversion:

const html = MarkdownConverter.toHtml(markdownString, {
  gfm: false,
  lineBreak: true
});

Pattern 4: Side-by-Side Preview with Splitter

For a full editor + preview experience, use the Syncfusion Splitter component alongside the Rich Text Editor in Markdown mode. The preview pane is updated via updateValue() on every change event. πŸ“„ Read: references/richtexteditor-integration.md for the full implementation.

Key Props / API

APITypeDefaultPurpose
MarkdownConverter.toHtml(content, options?)static methodβ€”Converts Markdown string to HTML
options.asyncbooleanfalseAsync conversion for large content
options.gfmbooleantrueGitHub Flavored Markdown support
options.lineBreakbooleanfalseSingle line breaks β†’ <br>
options.silencebooleanfalseSuppress errors on invalid Markdown

What ships with it: 4 files

27.6 KB alongside SKILL.md

Keep looking

Skills are one crate of 326,499. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.