Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified blazor/rich-text-editor/images/list-editing.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@using Syncfusion.Blazor.RichTextEditor

<SfRichTextEditor EnableMarkdownAutoFormat="true">
<h3>Markdown Auto-Format</h3>
<p>The Markdown Auto-Format feature automatically converts Markdown syntax into clean, semantic HTML within the Rich Text Editor. This capability streamlines content creation by allowing you to write using familiar Markdown patterns while ensuring consistent HTML output.</p>
<p>When enabled, the editor supports both <strong>inline formatting</strong> (such as bold and italic) and <strong>block-level elements</strong> (such as headings and lists). As you type, Markdown syntax is instantly transformed into its corresponding HTML tags, delivering a smooth and efficient editing experience.</p>
<p>It also supports <strong>checklists</strong> and <strong>to-do lists,</strong> allowing you to create interactive task lists using simple Markdown syntax.</p>
</SfRichTextEditor>
22 changes: 20 additions & 2 deletions blazor/rich-text-editor/tools/text-formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ Use the `HorizontalLine` tool in the editor below to see the feature in action.

![Blazor RichTextEditor with Custom Format](../images/blazor-richtexteditor-horizontal-line.png)

# Format Painter in Blazor Rich Text Editor
## Format Painter in Blazor Rich Text Editor

The format painter tool enables users to replicate formatting from one text segment and apply it to another. It can be accessed through the toolbar or via keyboard shortcuts, allowing the transfer of styles from individual words to entire paragraphs. Customization options are available through the Rich Text Editor[FormatPainterSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.RichTextEditor.RichTextEditorFormatPainterSettings.html) property.

Expand Down Expand Up @@ -368,4 +368,22 @@ Using `Clear Format` makes it easy to undo styling changes and keep your text lo
{% endhighlight %}
{% endtabs %}

![Blazor RichTextEditor with Clear Format](../images/blazor-richtexteditor-using-clear-format.gif)
![Blazor RichTextEditor with Clear Format](../images/blazor-richtexteditor-using-clear-format.gif)

## Markdown Auto Format

The Rich Text Editor supports automatic conversion of Markdown syntax into HTML using the `EnableMarkdownAutoFormat` property. This feature simplifies content creation by transforming Markdown elements into their corresponding HTML tags, ensuring consistency and improving efficiency.

By default, Markdown Auto-Format is enabled. The editor supports both inline formatting and block-level elements. As you type, Markdown syntax is automatically converted into semantic HTML tags, ensuring a smooth and efficient editing experience.

Use the `EnableMarkdownAutoFormat` tool in the editor below to see the feature in action.

{% tabs %}
{% highlight razor %}

{% include_relative code-snippet/markdown-auto-format.razor %}

{% endhighlight %}
{% endtabs %}

![Blazor RichTextEditor Markdown Auto Format behaviour](../images/blazor-richtexteditor-using-markdown-auto-format.gif)