Skip to content

1.1.0 — Inline HTML

Choose a tag to compare

@radueduard97 radueduard97 released this 24 Jul 22:29
· 1 commit to main since this release

MdPad 1.1.0 renders inline HTML in the preview.

HTML blocks used to land as raw monospace text and inline tags were dropped altogether, so the centred title, badge row and <kbd> a README is built from did not survive the preview. They do now — as native WinUI controls, same as everything else. No WebView2, no browser.

Inline HTML

  • Blocks<h1><h6> (which join the outline sidebar), <p>, <div>, <blockquote>, <ul> / <ol> (with start), <pre>, <hr>, <details> / <summary>, and <table> with thead/tbody, <th>, colspan and per-cell alignment
  • Inline<b>, <i>, <u>, <s>, <code>, <kbd>, <samp>, <mark>, <small>, <br>, <a> and <img>, including tags that open and close across other Markdown
  • Alignmentalign="center" and style="text-align: …" are honoured and inherited by nested content
  • Comments are hidden, <script> and <style> are dropped, and a stray < stays a <

Images

  • Relative sources now resolve against the document's folder, so <img src="Assets/logo.png"> and Markdown ![](docs/shot.png) finally draw
  • SVG is supported, including extension-less URLs that serve SVG — which is how a shields.io badge renders
  • Linked images (<a><img></a>, [![badge](img)](url)) are clickable
  • A source that will not load falls back to its alt text instead of a blank gap

Install

Zip — download MdPad-1.1.0-win-x64.zip, unzip, run Install.cmd. Per-user, no administrator rights, self-contained (no .NET or Windows App SDK needed).

MSIX — download MdPad-1.1.0-win-x64-msix.zip, unzip, run Install-Msix.ps1. The package is signed with a self-signed developer certificate, so the script imports that certificate into Trusted People before installing.

Known limitations

  • WinUI's SVG renderer does not draw <text> elements, so shields.io badges show their colours but not their labels
  • <details> renders expanded rather than collapsible
  • CSS in a style attribute is ignored apart from text-align

Full changelog: 1.0.0...1.1.0