Repository navigation
Releases
Releases · troglobit/preview
preview v1.0.0
First release of preview, a fork of go-grip v0.11.0 by Christoph Herb. The changes below are relative to that release.
Changes
- The project is now called preview. The command is
previewand the modulegithub.com/troglobit/preview, installed withgo install github.com/troglobit/preview@latest - Release packages:
.deband.rpmpackages and archives for Linux, macOS and Windows, for amd64 and arm64 - New
preview(1)man page, installed by the packages and bymake install - The browser is no longer opened on start, use
-bto open it - When port 6419 is busy and
-pis not given, the first free port of the twenty that follow is used instead of failing - Renamed options:
--bounding-box=falseis now--no-border, and--disable-markdown-featureis now-d,--disable - GitHub's dark dimmed theme joins light and dark, and a new button switches to GitHub's colorblind palette. All colours, code highlighting included, follow GitHub's current palettes
- A stored theme is applied before the page is drawn, so a dark page no longer flashes light while loading. Theme and width choices stored by go-grip are not carried over
- On a file page, the left and right arrow keys, or
handl, step to the previous and next Markdown file in the folder, and Esc goes up to the folder - On a folder page, Esc,
h,land the right arrow key work too - Press
?on any page for the list of its keys - Live reload can be paused for one page with a new button. By Andrew Chen
- New option
--mermaid-icon-packlets Mermaid diagrams use iconify icons. The browser fetches the packs from unpkg.com, so this option needs network access. By Toshihito Kon - Files ending in
.markdown,.mdown,.mdwn,.mkd,.mkdnand.mkdownare rendered like.md, also as a folder's README - Stylesheets and scripts are revalidated instead of downloaded again on every page view
Fixes
- Raw HTML blocks that end on a closing tag, such as a
<pre>block, were dropped from the page - The wrapper of every highlighted code block had a stray quote in its
classattribute
preview v1.0.0-rc2
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>