Skip to content

v4.3.3

Choose a tag to compare

@ifrederico ifrederico released this 11 Oct 16:25
· 2 commits to main since this release

Fixes the Markdown preview breaking lines at the source file's line width, plus several server bugs found while in there.

  • Join the lines of a paragraph the way GitHub does, so READMEs hard-wrapped at 70 or 80 columns render at full width. Two trailing spaces still force a line break.
  • Read the port setting fresh on every start. "Change Port..." had no effect once the server had started, and a fallback port taken while the configured one was busy stuck for the whole session.
  • Hang up on WebSocket clients when the server stops, so open tabs reconnect after a restart instead of losing live reload until a manual refresh.
  • Resolve HEAD paths exactly like GET, send gzip only when the client accepts it, and announce Connection: close.
  • Add server lifecycle regression coverage.

Verified with all 59 automated tests and ghostty's README in Sublime Text. Follow-up to #9.