Skip to content

Releases: trsdn/mdviewerplus

v1.2.0

25 Feb 10:45

Choose a tag to compare

What's New

Print Support

  • Native macOS print dialog — Press ⌘P to print the rendered markdown preview
  • Renders into an off-screen WKWebView at A4 dimensions with print-optimized styling (12px font, light theme)
  • Smart page breaks that avoid splitting elements across pages
  • All pages are consistent A4 size (595×842pt)

Optimized Build

  • Release binary stripped for smaller size

Download

121 KB zipped · 360 KB app bundle

v1.1.1

24 Feb 00:00

Choose a tag to compare

Changelog

Fixed

  • Preview not rendering — Temp HTML file is now written to the markdown file's directory so WKWebView can read it within its security scope
  • WKWebView filesystem access — Scoped allowingReadAccessTo to the markdown file's directory instead of root /
  • JS injection vulnerability — Replaced manual string escaping with JSONSerialization for safe template injection
  • Unicode cursor offset — Fixed insertLink cursor placement for text with multi-byte characters (uses UTF-16 length)
  • WKScriptMessageHandler retain cycle — Added dismantleNSView to remove message handlers on cleanup
  • Scroll sync performance — Skip redundant JavaScript scroll calls when fraction hasn't changed
  • Format commands scope — Bold/Italic/Link formatting only applies when the editor is first responder

Download

146 KB zipped · 484 KB app bundle

v1.1.0

23 Feb 23:36

Choose a tag to compare

What's New

  • Syntax highlighting — Editor highlights headings, bold, italic, links, code blocks, blockquotes, and list markers with theme-matched colors
  • Context-aware zoom — Cmd+/- and Cmd+0 target the active pane: preview in view mode, editor font in edit mode, focused pane in split mode
  • Local image support — Relative image paths in markdown now render correctly in the preview
  • Persistent editor font size — Editor font size persists across app restarts via @AppStorage
  • Link handling — Clicked links in the preview now open in the default browser

Download

146 KB zipped · 484 KB app bundle