This is a live demo of MDXEditor with all default features on.
The overriding design goal for Markdown’s formatting syntax is to make it as readable as possible.
The idea is that a Markdown-formatted document should be publishable as-is, as plain text,
without looking like it’s been marked up with tags or formatting instructions.
In here, you can find the following markdown elements:
Headings
Lists
Unordered
Ordered
Check lists
And nested ;)
Links
Bold/Italic/Underline formatting
Tables
Code block editors
And much more.
The current editor content is styled using the @tailwindcss/typographyplugin.
What can you do here?
This is a great location for you to test how editing markdown feels. If you have an existing markdown source, you can switch to source mode using the toggle group in the top right, paste it in there, and go back to rich text mode.
If you need a few ideas, here's what you can try:
Add your own code sample
Change the type of the headings
Insert a table, add a few rows and columns
Switch back to source markdown to see what you're going to get as an output
Test the diff feature to see how the markdown has changed
Add a frontmatter block through the toolbar button
A code sample
MDXEditor embeds CodeMirror for code editing.
export default function App() {
return (<div>Hello world</div>)
}
A live code example
The block below is a live React component. You can configure multiple live code presets that specify the available npm packages and the default imports. You can also specify a default component that will be rendered in the live code block.
export default function App() {
return (<div>
<p>This is a live React component, that's being previewed in codesandbox. </p>
<p>Editing it will update the fenced codeblock in the markdown.</p>
</div>)
}
printf('123');
A table
Play with the table below - add rows, columns, change column alignment. When editing,
you can navigate the cells with enter, shift+enter, tab and shift+tab.
This is a live demo of MDXEditor with all default features on.
— Daring Fireball.
In here, you can find the following markdown elements:
The current editor content is styled using the
@tailwindcss/typography
plugin.What can you do here?
This is a great location for you to test how editing markdown feels. If you have an existing markdown source, you can switch to source mode using the toggle group in the top right, paste it in there, and go back to rich text mode.
If you need a few ideas, here's what you can try:
A code sample
MDXEditor embeds CodeMirror for code editing.
A live code example
The block below is a live React component. You can configure multiple live code presets that specify the available npm packages and the default imports. You can also specify a default component that will be rendered in the live code block.
A table
Play with the table below - add rows, columns, change column alignment. When editing, you can navigate the cells with
enter
,shift+enter
,tab
andshift+tab
.