Skip to content

Releases: baryon/markdown-live-preview

v1.6.4

Choose a tag to compare

@baryon baryon released this 12 Mar 10:36
a57fb1b

Fix

  • Fix PDF export error: Bundle puppeteer-core into the extension instead of treating it as an external dependency. Previously, the VSIX package failed to include puppeteer-core due to pnpm symlinks, causing "Cannot find module 'puppeteer-core'" error when using Save as PDF.

v1.6.3

Choose a tag to compare

@baryon baryon released this 12 Mar 10:21
bcf6251

What's New

Code block word wrap toggle

  • New Wrap button in code block hover controls
  • Toggles word wrap to eliminate horizontal scrollbars
  • Line numbers stay aligned correctly on wrapped lines

PDF export improvements

  • Open button in success notification to open PDF with system viewer
  • Progress bar now dismisses properly before showing the notification

Bug fix

  • Inline code spans (e.g. $$...$$) no longer incorrectly treated as math expressions

v1.6.2

Choose a tag to compare

@baryon baryon released this 12 Mar 10:07
f9ef292

Bug Fix

Inline code spans no longer treated as math

  • Backtick-wrapped math delimiters like $$...$$ and \[...\] were incorrectly rendered as math expressions
  • Root cause: regex [\s\S]*? matched across newlines, pairing backticks on distant lines and consuming real inline code spans
  • Fix: use [^\n]*? to restrict inline code matching to single lines

i18n README sync

  • Updated math section in README.zh-CN.md and README.ja.md to match the english readme
  • Added: inline/block math subsections, supported syntax table, quick actions, configuration table

v1.6.1

Choose a tag to compare

@baryon baryon released this 12 Mar 09:51
926532a

Bug Fix

Inline code spans no longer treated as math

  • Backtick-wrapped math delimiters like `$$...$$` and `\[...\]` were incorrectly rendered as math expressions instead of inline code
  • Now inline code spans are protected before math extraction, matching GitHub's rendering behavior

v1.6.0

Choose a tag to compare

@baryon baryon released this 12 Mar 09:44
445eb5d

What's New

Save as PDF Export

  • Right-click → Save as PDF or click the PDF button in the page toolbar
  • Uses system Chrome/Chromium/Edge via puppeteer-core (no bundled browser)
  • Full fidelity: KaTeX math, Mermaid diagrams, code blocks, CJK text
  • Selectable/searchable text in the generated PDF
  • A4 format with print backgrounds enabled

Requirements

  • Google Chrome, Chromium, or Microsoft Edge installed on your system

v1.5.5

Choose a tag to compare

@baryon baryon released this 05 Mar 01:23
2cefefd

Bug Fix

  • Fix KaTeX corrupting code blocks containing $$: SQL/PostgreSQL dollar-quoting ($$) inside fenced code blocks was being matched by KaTeX as math delimiters, breaking the rendered HTML. Now <pre> blocks are excluded from math processing.

v1.5.4

Choose a tag to compare

@baryon baryon released this 03 Mar 04:53
2e03de2

Fixes

  • Change horizontal separator lines (├───┤) from dashed to solid (section borders)
  • Fix vertical divider lines extending through title rows by tracking per section instead of globally

v1.5.3

Choose a tag to compare

@baryon baryon released this 03 Mar 03:49
dddaa8a

Fixes

  • Fix false vertical divider lines inside boxes (Sandbox, System API) caused by border ┌/│ column alignment drift
  • Expand child box edge tolerance from ±1 to ±2 for more robust divider detection

v1.5.2

Choose a tag to compare

@baryon baryon released this 03 Mar 03:39
9c33867

Fixes

  • Fix branching connector stems penetrating through boxes by clipping to the closest box bottom edge
  • Fix vertical arrows creating huge lines by using edge proximity with smallest-area box selection
  • Add internal │ column divider detection and rendering as dashed vertical separator lines
  • Split text at │ dividers for proper column-aware centering

v1.5.1

Choose a tag to compare

@baryon baryon released this 02 Mar 04:32
86acbe1

Bug Fixes

  • Fix horizontal arrows overlapping with box rectangles (clip with 4px gap)
  • Fix → character rendered as duplicate arrowhead in SVG (filter only when overlapping detected arrows, preserve → in regular text)
  • Fix branching connector vertical stem not drawn due to CJK column drift (±2 tolerance)
  • Fix false connector detection when box corner shifted by CJK alignment (isBoxCorner check with origX)
  • Snap connector stem to nearest box center for cleaner alignment