From Markdown to HTML: a practical .NET renderer
Less theory, more code: parse Markdown with Markdig, inspect its structure, validate links and sanitize the HTML before displaying it.
Journal
Published articles, technical notes and practical ideas.
11 articles found · Page 1 of 2
Less theory, more code: parse Markdown with Markdig, inspect its structure, validate links and sanitize the HTML before displaying it.
That little “3 min read” label takes only a few lines of logic. Here’s how I calculate it from Markdown in .NET and display it in Angular.
A familiar service, a shorter constructor, and a few details worth knowing before changing your existing C# code. Practical examples without the long explanation.
A practical guide to basic, named and typed HttpClient usage in .NET, with registration, headers, JSON requests, timeouts, cancellation and lifetime decisions.
A practical SQL Server cache behind ICacheProvider: typed values, JSON serialization, expiration, invalidation, and the tradeoffs to consider in a .NET application.
How FileStore selects local disk or Azure Blob Storage for each API client, with code for the shared contract, upload, download, and the boundaries to watch.
A practical look at FileStore migrations: creating tables, changing columns, configuring the runner, version numbering, and the limits of rollback.
Why scattered generated files and a planned server move led me to build a shared storage API, with file references, database mapping, and API-client ownership.
How long payment links in 5in5 reminder emails led to a small .NET API, with code for link creation, redirects, API keys, and click counting.
Inside the CMS behind this website: draft saves, revision snapshots, private previews, publication checks, scheduled posts, and cache updates—with C# and TypeScript examples.