Markdown shortcuts
Since 0.1.0-alpha.22Typed Markdown becomes formats as you type, for people who write it out of habit.
At the start of a line, ## , ### and #### make headings, - or * a bulleted list, 1. a numbered list, > a quote, and three backticks and a space a code block. --- alone on a line, then Enter, makes a horizontal line. In a line, **bold**, *italic* and code turn into their formats as the closing mark is typed. Ctrl+Z undoes a change.
The value is still HTML: Markdown is only a way of typing. To turn the shortcuts off, set MarkdownShortcuts to false.
Typing Markdown
Type ## and a space for a heading, - and a space for a list, or **text** for bold.
Static
Preview
Code
@* Meeting notes, typed fast: try ## and a space, - and a space, or **text**. *@
<RichTextEditor Grow @bind-Value="_notes" Label="Meeting notes" Rows="8" Tools="RichTextTools.Basic"
Placeholder="Type ## and a space for a heading, - and a space for a list" />
{
private string? _notes;
}