All Projects → MyNihongo → MudBlazor.Markdown

MyNihongo / MudBlazor.Markdown

Licence: MIT license
Markdown component based on the MudBlazor environment

Programming Languages

C#
18002 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to MudBlazor.Markdown

MudBlazor
Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
Stars: ✭ 4,539 (+15030%)
Mutual labels:  netcore, blazor, blazor-client, blazor-server, blazor-components, blazor-webassembly
blazor-ui
A collection of examples related to Telerik UI for Blazor Components: https://www.telerik.com/blazor-ui
Stars: ✭ 182 (+506.67%)
Mutual labels:  wasm, blazor, blazor-server, blazor-components, blazor-webassembly
smart-blazor
Blazor UI Components & Examples
Stars: ✭ 32 (+6.67%)
Mutual labels:  blazor, blazor-client, blazor-server, blazor-components, blazor-webassembly
Ant Design Blazor
🌈A set of enterprise-class UI components based on Ant Design and Blazor WebAssembly.
Stars: ✭ 3,890 (+12866.67%)
Mutual labels:  wasm, blazor, blazor-server, blazor-components, blazor-webassembly
AsteroidsWasm
Collection of applications based on a single C# .NET Standard project running in: Blazor Client (WebAssembly), Blazor Server, Electron, WPF, WinForms, Xamarin
Stars: ✭ 136 (+353.33%)
Mutual labels:  blazor, blazor-client, blazor-server, blazor-webassembly
Blazorade-Teams
A Blazor component library that is designed to be used when building applications for Microsoft Teams.
Stars: ✭ 29 (-3.33%)
Mutual labels:  blazor, blazor-client, blazor-server, blazor-webassembly
blazor-docs
Public Documentation for Telerik UI for Blazor components.
Stars: ✭ 42 (+40%)
Mutual labels:  blazor, blazor-client, blazor-server, blazor-components
AutoSaveEditForm
A replacement for the default EditForm component which will auto save a form until it is successfully submitted
Stars: ✭ 44 (+46.67%)
Mutual labels:  blazor, blazor-client, blazor-server, blazor-webassembly
BlazorPoint
Blazor (Client Side) on SharePoint
Stars: ✭ 40 (+33.33%)
Mutual labels:  blazor, blazor-client, blazor-webassembly
awesome-blazor-browser
A Blazor WebAssembly app for browsing the "Awesome Blazor" resources.
Stars: ✭ 155 (+416.67%)
Mutual labels:  blazor, blazor-client, blazor-webassembly
FindRazorSourceFile
This is a set of NuGet packages that makes your Blazor apps display the source .razor file name that generated the HTML element under the mouse cursor when entering the Ctrl + Shift + F hotkeys.
Stars: ✭ 39 (+30%)
Mutual labels:  blazor, blazor-server, blazor-webassembly
TextEditor
Rich text editor for Blazor applications - Uses Quill JS
Stars: ✭ 156 (+420%)
Mutual labels:  blazor, blazor-client, blazor-server
Matblazor
Material Design components for Blazor and Razor Components
Stars: ✭ 2,599 (+8563.33%)
Mutual labels:  blazor, blazor-client, blazor-server
BlazorWasmWithDocker
Companion code sample for my blog post - Containerising a Blazor WebAssembly App
Stars: ✭ 16 (-46.67%)
Mutual labels:  blazor, blazor-client, blazor-webassembly
FlashCards
Learning Blazor By Creating A Flash Cards Application
Stars: ✭ 17 (-43.33%)
Mutual labels:  blazor, blazor-server, mudblazor
BlazorVirtualScrolling
Blazor components for efficiently rendering large lists and data using virtual scrolling
Stars: ✭ 56 (+86.67%)
Mutual labels:  blazor, blazor-client, blazor-server
Blazor.PersianDatePicker
A free JavaScript Jalali (Persian) and Gregorian (Miladi) dual datepicker library for Blazor applications
Stars: ✭ 40 (+33.33%)
Mutual labels:  blazor, blazor-server, blazor-webassembly
MusicX
Simple web music player built with Blazor WebAssembly
Stars: ✭ 138 (+360%)
Mutual labels:  blazor, blazor-webassembly
TheLastTime
C# .NET 5 Blazor WebAssembly Progressive Web Application that tracks when was the last time you did something
Stars: ✭ 23 (-23.33%)
Mutual labels:  blazor, blazor-webassembly
SyncfusionHelpDesk
Blazor Syncfusion Help Desk
Stars: ✭ 38 (+26.67%)
Mutual labels:  blazor, blazor-server

Version Nuget downloads

Markdown component for MudBlazor

This README covers configuration steps for Blazor Server and Blazor WebAssembly. For images how the markup component looks like in the browser go to the README of samples.

Update guide

For guidance with update errors please visit the wiki page.

Getting started

Install the NuGet package.

dotnet add package MudBlazor.Markdown

Add the following using statement in _Imports.razor.

@using MudBlazor

Add the following nodes in either App.razor or MainLayout.razor.

<MudThemeProvider />
<MudDialogProvider />
<MudSnackbarProvider />

Add the following nodes in Pages/_Host.cstml (Server) or wwwroot/index.html (WebAssembly).
In the <head> node add these CSS stylesheets.

<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
<link href="_content/MudBlazor.Markdown/MudBlazor.Markdown.min.css" rel="stylesheet" />

At the bottom of the <body> node add this JS source.

<script src="_content/MudBlazor/MudBlazor.min.js"></script>
<script src="_content/MudBlazor.Markdown/MudBlazor.Markdown.min.js"></script>

Register MudBlazor services in the DI container.
For the Blazor Server in the Startup.cs add this method.

public void ConfigureServices(IServiceCollection services)
{
    services.AddMudServices();
    services.AddMudMarkdownServices();
}

For the Blazor WebAssembly in the Program.cs add this method.

var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.Services.AddMudServices();
builder.Services.AddMudMarkdownServices();

Using the component

<MudText Typo="Typo.h3">My markdown</MudText>
<MudMarkdown Value="@Value" />

@code
{
    private string Value { get; } = "text *italics* and **bold**";
}

Available properties

  • Value - string value of the markdown text;
  • LinkCommand - <MudLink> components will not navigate to the provided URL, but instead invoke the command. If the property is null then <MudLink> will navigate to the link automatically (behaviour of <a>);
  • TableCellMinWidth - minimum width (in pixels) for a table cell. If the property is null or negative the min width is not applied;
  • OverrideHeaderTypo - override a Typo parameter for tags <h1>, <h2>, etc.;
  • OverrideLinkUrl - override a URL address for links;
  • CodeBlockTheme - default theme for code blocks.

Palette (colour) configurations

Useful links for configuring the palette:

The <MudMarkdown> supports the palette of the MudTheme which makes styling easy (we hope). These are the colors which are used in the <MudMarkdown>:

  • DrawerBackground - background-color of the quoted text;
  • OverlayDark - background-color of the code block;
  • TextDisabled - border-color of the quoted text and border-color of the h1 and h2 bottom divider;
  • TextPrimary - regular text in the markdown;
  • TextSecondary - color of the quoted text;
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].