Markdown editor

The Syncfusion React Markdown Editor is the Markdown editing mode of the React Rich Text Editor. The component can be configured for Markdown or HTML editing. Configurable live HTML preview through a Markdown converter, Markdown syntax formatting, customizable toolbars, and support for tables, images, and links make it suitable for blogs, CMS platforms, documentation sites, and note-taking applications.

The component can also be configured as a React MD editor for applications that require Markdown authoring.


Live Markdown preview

Live HTML preview shows changes to Markdown-formatted content when the Syncfusion MarkdownConverter is integrated.


React Markdown editor with custom format

Custom Markdown syntax

Customizable Markdown syntax supports configuring syntax for supported formatting commands. Custom syntax is suitable when specific Markdown conventions are required alongside built-in formatting commands.


Toolbar with a rich set of tools

Toolbar commands support text formatting, image insertion, headings, hyperlinks, lists, and content preview. The same Rich Text Editor component and API can be configured for Markdown or HTML editing. Related commands are grouped together to support different editing tasks.

React markdown editor with multi-row toolbar.

Multi-row toolbar

The excess toolbar commands are wrapped in the next rows within toolbar in the Markdown text editor.

React markdown editor with expanded toolbar.

Expand toolbar

The overflow toolbar commands hidden in the next row become visible when the toolbar is expanded via the expand icon.

React markdown editor with floating toolbar.

Floating the toolbar

The Markdown editor toolbar doesn’t stick with top of the editor, but floats within the editor area while scrolling the editor page.

React markdown editor with Custom tools.

Custom tools

Users can also add their own commands (tools) with actions to the toolbar along with the built-in commands to enhance the markdown text editor.


Editing experience

Formatting tools support bold, italic, and strikethrough, along with images, tables, and links in Markdown content. Content formatting is suitable when Markdown documents combine styled text, images, and structured elements.

Formatting commands

Users can apply formatting to the selected content, whole paragraphs, or specific words or characters:

  • Apply formatting to headings, quotations, code, paragraphs.
  • Bold, italicize, or strikethrough selected words.

Insert images in React markdown editor.

Insert images

You can insert images in the markdown editor from a local path or server path with image alt text and then link URLs to the images.

Insert markdown hyperlinks in React markdown editor.

Insert or change the hyperlinks with display text in markdown syntax.


Insert table in React markdown editor

Insert markdown table

Users can insert tables with rows and columns in the Markdown editor to display grid-like tabular data.


Adding lists

Create ordered (numbered) or unordered (bulleted) lists to organize content using Markdown syntax.

Insert markdown list in React markdown editor.


Markdown text to HTML preview.

Markdown to HTML

Integrating third-party Markdown parsers such as marked or remark converts Markdown syntax into formatted HTML for real-time preview in the Rich Text Editor. Live preview is suitable when Markdown input needs to be compared with the rendered HTML output during editing.


@Mention integration

Integration with the Mention component enables @mentions within Markdown content, allowing authors to tag users while editing. User tagging is useful when content requires direct references to specific collaborators or participants.

Markdown mention integration


React Rich Text Editor Globalization image

Localization

Enabling localization in a Markdown editor allows users from different locales to customize text direction, language, and numbering formats based on their preferences.

React Rich Text Editor Adaptive Ui image

Adapts across devices

Responsive layouts adapt the editor for desktop, tablet, and mobile screens with touch-friendly controls. Support for different screen sizes is useful when authors create or edit Markdown content across multiple device types.

React Markdown editor supported themes.

Built-in and customizable themes

The Markdown editor is shipped with several built-in themes such as Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, Fluent, and high contrast.

Accessibility and screen reader support in React Markdown Editor.

Accessibility

WAI-ARIA roles, states, and properties help assistive technologies interpret the Markdown editing view and its controls. Screen-reader support and keyboard navigation contribute to accessible interaction with Markdown content and editor commands.



Frequently Asked Questions

  • The Markdown Editor is a component that enables users to write content in Markdown, a lightweight markup language. An interface with formatting tools is provided for creating and editing content.

  • The React Markdown Editor supports live preview functionality. By integrating third-party libraries such as Marked.js, Markdown content can be converted into HTML and displayed in real time, providing an immediate visual representation of the formatted content.

  • The Markdown Editor allows the maximum number of characters in content to be restricted. Limiting the character count can be useful for scenarios where content length needs to be controlled. The limit can be set using the maxLength property.

  • Yes. The Syncfusion React Markdown Editor supports both Markdown and WYSIWYG HTML editing. The same API can be used to switch between Markdown and HTML modes.

  • To enable Markdown mode, set the editorMode property to ‘Markdown’ when initializing the Rich Text Editor. Here’s an example:
<RichTextEditorComponent editorMode={'Markdown'}>
</RichTextEditorComponent>

  • Yes. The React Markdown Editor allows customization of the default Markdown syntax. The default syntax can be overridden by configuring the RichTextEditorMarkdownOptions properties.

  • The Syncfusion React Markdown Editor provides Markdown and HTML editing, configurable live HTML preview through the Syncfusion MarkdownConverter, Markdown formatting, customizable Markdown syntax, and a customizable toolbar, making it suitable for blogs, documentation tools, CMS platforms, and note-taking applications.

  • If you’re looking for a React Markdown library for creating and editing Markdown content, the Syncfusion React Markdown Editor provides Markdown editing through the Rich Text Editor component. Markdown formatting, toolbar customization, image insertion, tables, and links are supported, along with configurable live HTML preview through the Syncfusion MarkdownConverter. The Rich Text Editor can be configured for either Markdown or HTML editing.
Scroll up icon
Syncfusion Feedback