Markdown keyboard shortcuts
The markdown shortcuts plugin enables typing shortcuts (similar to Notion, recently ported to Google Docs) that initiate the corresponding markdown blocks.
Notice that you will need the corresponding plugins for the markdown blocks listed before markdownShortcutPlugin() to enable support.
<MDXEditor markdown="hello world" plugins={[headingsPlugin(), listsPlugin(), linkPlugin(), quotePlugin(), markdownShortcutPlugin()]} />
Supported shortcuts
- Use one to six
#characters to create a heading. The number of#characters determines the heading level. - Use
*or-to create a list item. - Use
>to create a block quote. - Select a text and press
Ctrl+Bto make it bold,Ctrl+Ito make it italic, orCtrl+Uto underline it. UseCmdon macOS. - With text selected, use
Cmd+Kto open the link dialog. - Use
`to create inline code. - Type
```$lang(with$langbeing any supported language, followed by space) to insert a code block.