Markdown extension


The Markdown component allows you to edit markdown strings. The Blazorise Markdown is based on the Easy MarkDown Editor JavaScript library.


Markdown component is created as an extension for Blazorise so before you continue you need to first get it from NuGet.


Install Markdown extension from NuGet.

Install-Package Blazorise.Markdown


In your main Imports.razor add:

@using Blazorise.Markdown

Static Files

Include CSS and JS links into your index.html or _Host.cshtml file, depending if you’re using a Blazor WebAssembly or Blazor Server side project.

<link href="" rel="stylesheet">
<script src=""></script>
<script src=""></script>

<script src="_content/Blazorise.Markdown/blazorise.markdown.js"></script>


<Markdown Value="@markdownValue" ValueChanged="@OnMarkdownValueChanged" />
    string markdownValue = "# EasyMDE \n Go ahead, play around with the editor! Be sure to check out **bold**, *italic*, [links]( and all the other features. You can type the Markdown syntax, use the toolbar, or use shortcuts like `ctrl-b` or `cmd-b`.";

    string markdownHtml;

    protected override void OnInitialized()
        markdownHtml = Markdig.Markdown.ToHtml( markdownValue ?? string.Empty );


    Task OnMarkdownValueChanged( string value )
        markdownValue = value;

        markdownHtml = Markdig.Markdown.ToHtml( markdownValue ?? string.Empty );

        return Task.CompletedTask;

For transforming markdown value into HTML we used an excellent Markdig library.


Name Type Default Description
Value string null Gets or sets the markdown value.
ValueChanged event   An event that occurs after the markdown value has changed.