{"repo":"jsakamoto/MD2RazorGenerator","free":true,"listed":false,"github":"https://github.com/jsakamoto/MD2RazorGenerator","clone":"git clone https://github.com/jsakamoto/MD2RazorGenerator.git","description":"A C# source generator for Blazor that converts Markdown into Razor components.","language":"C#","stars":36,"topics":["blazor","markdown","sourcegenerator"],"license":"MPL-2.0","category":"productivity","readme_excerpt":"\"MD2RazorGenerator\" - Markdown to Razor Component Generator for Blazor Summary MD2RazorGenerator is a C# source generator NuGet package for Blazor that converts Markdown files ( .md ) into Razor components. Once you install this NuGet package, any Markdown files ( .md ) in your Blazor project will automatically be compiled into Razor components. Live Demo Site: https://jsakamoto.github.io/MD2RazorGenerator/ Generated components work seamlessly with all Blazor rendering modes, including Server, WebAssembly, and Server-Side Rendering (SSR). It also fully supports hot reload, ensuring a smooth and productive development experience regardless of your chosen hosting model. For a quick visual overview, watch Jimmy Engström’s introduction video: Quick Start 1. Install the NuGet package via the .NET CLI: Or use the NuGet Package Manager in Visual Studio. 2. Add a Markdown file to your project. For example, create a file named Greeting.md in the Pages folder: 3. The Greeting Razor component will be generated automatically. You can use it anywhere in your Blazor application: Creating Routable Page Components To make a generated component routable, specify a url in the YAML front matter at the top of your Markdown file. This works the same as the @page directive in .razor files. For example, the following in Home.md : This will generate a Home Razor component, allowing you to navigate to /home in your Blazor application. You can also specify multiple URLs using YAML sequence syntax: Ava","default_branch":null,"files":null,"tree":[],"storefront":"/r/jsakamoto","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jsakamoto/MD2RazorGenerator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}