erossini / BlazorMarkdownEditor

Complete Markdown Editor component for Blazor WebAssembly and Blazor Server. Full of functionalities
https://www.puresourcecode.com/dotnet/blazor/markdown-editor-component-for-blazor/
MIT License
117 stars 13 forks source link

How can we create HTMLString without loading MarkdownEditor #27

Closed manish-karn closed 2 months ago

manish-karn commented 3 months ago

Discussed in https://github.com/erossini/BlazorMarkdownEditor/discussions/26

Originally posted by **manish-karn** April 11, 2024 How can we generate HTMLString without loading MarkdownEditor? like MarkDig.Markdown.ToHTML() , I could not find any api exist , any code sample will be great appreciated, it is possible to show MarkdownEditor and call ValueHTMLChanged and hide MarkdownEditor immediately, but that causes annoying flicking UI
erossini commented 2 months ago

You can use libraries like MarkDig. It is possible to use the MarkdownEditor without displaying it. Just create an instance of it like

MarkdownEditor Markdown1;

and then use its properties and methods.