Markdown Editor for React, developed in jsx and typescript, support different themes、beautify content by prettier.
Markdown Editor for React, developed in jsx and typescript, support different themes、beautify content by prettier.
bold, italic, line-through, superscript26, subscript1, inline code, link
Raw HTML is disabled by default. Markup such as
<u>underline</u>is displayed as text. See markdownItConfig to enable it.
quote: I Have a Dream

import { useState } from 'react';
import { MdEditor } from 'md-editor-rt';
import 'md-editor-rt/lib/style.css';
export default () => {
const [text, setText] = useState('');
return <MdEditor value={text} onChange={setText} />;
};
The Old Man and the Sea served to reinvigorate Hemingway's literary reputation and prompted a reexamination of his entire body of work.
| THead1 | THead2 | THead3 |
|---|---|---|
| text-align:left | text-align:center | text-align:right |
Inline: x+y^{2x}
\sqrt[3]{x}
mermaid
echarts
Supported Types
note、abstract、info、tip、success、question、warning、failure、danger、bug、example、quote、hint、caution、error、attention
none