# @syncfusion/ej2-markdown-converter

> Essential JS 2 Markdown converter

Latest version **34.2.8** (published 2026-09-15) · SEE LICENSE IN license license · 0 weekly downloads

## Install

```sh
npm install @syncfusion/ej2-markdown-converter
pnpm add @syncfusion/ej2-markdown-converter
yarn add @syncfusion/ej2-markdown-converter
bun add @syncfusion/ej2-markdown-converter
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 34.2.8 |
| Published | 2026-09-15 |
| First published | 2025-12-16 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN license |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 449 |
| Author | Syncfusion Inc. |
| Maintainers | syncfusionorg, essentialjs2, syncfusion-javascript |
| Keywords | ej2, syncfusion, package-name |

## Links

- npm: https://www.npmjs.com/package/@syncfusion/ej2-markdown-converter
- Repository: https://github.com/syncfusion/ej2-javascript-ui-controls
- Homepage: https://www.syncfusion.com/javascript-ui-controls
- Issues: https://github.com/syncfusion/ej2-javascript-ui-controls/issues
- npm.io page: https://npm.io/package/@syncfusion/ej2-markdown-converter

## Dependencies (1)

- [@syncfusion/ej2-base](https://npm.io/package/@syncfusion/ej2-base.md) ~34.2.8

## Recent versions

- 34.2.8 (latest) — 2026-09-15
- 34.2.6 — 2026-09-01
- 34.2.2 — 2026-08-05
- 34.1.29 — 2026-07-06
- 33.2.3 — 2026-04-21
- 33.1.44 — 2026-03-16
- 32.2.9 — 2026-03-10
- 32.2.8 — 2026-03-03
- 32.2.7 — 2026-02-24
- 32.2.5 — 2026-02-17
- 32.2.4 — 2026-02-11
- 32.2.3 — 2026-02-05
- 32.1.25 — 2026-01-27
- 32.1.24 — 2026-01-20
- 32.1.23 — 2026-01-13
- … 4 more at https://npm.io/package/@syncfusion/ej2-markdown-converter/versions

## README

# JavaScript Markdown Converter

> **Using this package with an AI coding agent**
>
> Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:
>
> ```text
> Set up this project for Syncfusion before generating code. Fetch
> and follow the official instructions at https://ai.syncfusion.com,
> then report the detected platform, installed skill pack, MCP
> status, and any required licensing action.
> ```
> The setup detects your project’s platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.
>
> **Platform reference:** [https://ai.syncfusion.com/javascript/llms.txt](https://ai.syncfusion.com/javascript/llms.txt)

The JavaScript Markdown Converter is a lightweight, stateless, and efficient utility for converting **Markdown content to HTML**. It is designed to work seamlessly with Syncfusion EJ2 components, including the Markdown Editor, and other applications that require reliable Markdown processing.

<div align="center">
</div>

## ⚡️ Quick Start
The JavaScript Markdown Converter is easy to set up. Simply install the package, import the module, and use the provided static API to convert Markdown into HTML.

### Installation

To install the Markdown Converter via npm, run the following command:

```sh
npm install @syncfusion/ej2-markdown-converter --save
```

### Import the Module
Import the Markdown Converter module into your application:

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

```

### Convert Markdown to HTML
Use the static method parseToHtml() to convert Markdown to HTML:

 ```ts
// Convert Markdown to HTML
const markdown = '# Hello World\nThis is **Markdown** text.';
const html = MarkdownConverter.parseToHtml(markdown) as string;
console.log('HTML Output:', html);
 ```

### Run the Application
Open your project in a browser and verify the converted HTML output in the console. 🚀

## 🛠️ Supported frameworks

Markdown Converter control is also offered in following list of frameworks.

| [<img src="https://ej2.syncfusion.com/github/images/angular-new.svg" height="50" />](https://www.syncfusion.com/angular-ui-components?utm_medium=listing&utm_source=github)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Angular](https://www.syncfusion.com/angular-ui-components?utm_medium=listing&utm_source=github)&nbsp;&nbsp;&nbsp;&nbsp; | [<img src="https://ej2.syncfusion.com/github/images/react.svg"  height="50" />](https://www.syncfusion.com/react-ui-components?utm_medium=listing&utm_source=github)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[React](https://www.syncfusion.com/react-ui-components?utm_medium=listing&utm_source=github)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | [<img src="https://ej2.syncfusion.com/github/images/vue.svg" height="50" />](https://www.syncfusion.com/vue-ui-components?utm_medium=listing&utm_source=github)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Vue](https://www.syncfusion.com/vue-ui-components?utm_medium=listing&utm_source=github)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | [<img src="https://ej2.syncfusion.com/github/images/netcore.svg" height="50" />](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github)<br/>&nbsp;&nbsp;[ASP.NET&nbsp;Core](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github)&nbsp;&nbsp; | [<img src="https://ej2.syncfusion.com/github/images/netmvc.svg" height="50" />](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github)<br/>&nbsp;&nbsp;[ASP.NET&nbsp;MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github)&nbsp;&nbsp; | 
| :-----: | :-----: | :-----: | :-----: | :-----: |


## ✨ Key features

- **Markdown to HTML Conversion** – Convert Markdown content to HTML with high accuracy.

- **Preserves Formatting** – Maintains headings, lists, links, images, tables, and inline styles during conversion.

- **Configurable Options** – Customize conversion behavior with the following options:
  - `async` – Enables asynchronous conversion for large content processing.
  - `gfm` – Support GitHub Flavored Markdown.
  - `lineBreak` – Converts single line breaks into `<br>` elements..
  - `silence` – Suppresses errors and skips invalid Markdown instead of throwing exceptions.
  
  **Example:**
  ```ts
  // Convert Markdown to HTML
  const markdown = '# Hello World\nThis is **Markdown** text.';
  const html: string | Promise<string> = MarkdownConverter.parseToHtml(markdown, {
      gfm: true,
      async: true,
      lineBreak: true,
      silent: true
  }) as string;
  console.log('HTML Output:', html);
  ```

- **Modular Architecture** – Easily integrate with Rich Text Editor or use as a standalone utility.

- **Performance Optimized** – Fast and reliable conversion for large content blocks.

- **Cross-Platform Support** – Works in modern browsers and supports mobile-friendly applications.

## 🤝 Support

Product support is available through the following mediums.

* [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
* [Community forum](https://www.syncfusion.com/forums/essential-js2?utm_source=npm&utm_medium=listing&utm_campaign=javascript-markdownconverter-npm)
* [GitHub issues](https://github.com/syncfusion/ej2-javascript-ui-controls/issues/new)
* [Request feature or report bug](https://www.syncfusion.com/feedback/javascript?utm_source=npm&utm_medium=listing&utm_campaign=javascript-markdownconverter-npm)
* Live chat

## 🔄 Change log
 
Check the changelog [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/controls/markdownconverter/CHANGELOG.md?utm_source=npm&utm_medium=listing&utm_campaign=javascript-markdown-converter-npm). Get minor improvements and bug fixes every week to stay up to date with frequent updates.

## ⚖️ License and copyright

> This is a commercial product and requires a paid license for possession or use. Syncfusion<sup>®</sup> licensed software, including this component, is subject to the terms and conditions of Syncfusion<sup>®</sup> [EULA](https://www.syncfusion.com/eula/es/). To acquire a license for 80+ [JavaScript UI controls](https://www.syncfusion.com/javascript-ui-controls), you can [purchase](https://www.syncfusion.com/sales/products) or [start a free 30-day trial](https://www.syncfusion.com/account/manage-trials/start-trials).

> A [free community license](https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.

See [LICENSE FILE](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/license?utm_source=npm&utm_medium=listing&utm_campaign=javascript-markdown-converter-npm) for more info.

© Copyright 2026 Syncfusion<sup>®</sup> Inc. All Rights Reserved. The Syncfusion<sup>®</sup> Essential Studio<sup>®</sup> license and copyright applies to this distribution.

---
_Source: https://npm.io/package/@syncfusion/ej2-markdown-converter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
