Skip to content

v0.18.0

Choose a tag to compare

@tannevaled tannevaled released this 09 Nov 13:28
· 27 commits to main since this release
549062d
go install github.com/go-slides/slides/cmd/slides@v0.18.0

Theme packages (#80, #84, #88). A theme now fits in one .gsta.xz file (Go-Slides Theme Archive). It is a tar archive compressed with xz, with a theme.hcl at its root that names the theme and lists its CSS, fonts, assets, kinds and minimum go-slides version.

  • slides theme pack|verify|install|list|remove manage packages.
  • --theme and --theme-set accept a package.
  • theme: <name> in the front matter finds installed packages, kinds included.
  • Archives are untrusted input, so the following are refused with coded errors (theme.archive, theme.limit, theme.meta, theme.css, theme.svg, theme.font, theme.checksum, theme.version):
    • links, devices and other non-regular entries;
    • unsafe or duplicate paths;
    • oversized entries, headers or xz dictionaries, and compression bombs;
    • CSS or SVG that reaches outside the archive;
    • bad checksums.
  • The readers are fuzzed.

asciinema recordings (#78). ![cast](demo.cast) embeds an asciicast v2 or v3 recording.

  • HTML: the recording plays in a built-in player, with no third-party script. It starts paused under prefers-reduced-motion.
  • PDF, PPTX and ODP: the terminal screen at a chosen time (#t=12.5) is drawn as vector text with its colours.
  • Bounds: recordings are size-, duration- and work-bounded. A bad recording is refused with cast.limit, cast.syntax, cast.version or cast.path.

Animations in the exports (#81).

  • PPTX and ODP: Marp transitions become slide transitions, and fragmented lists become click-by-click fades.
  • PDF: each page gets a /Trans transition. --pdf-fragments (off by default) writes one page per fragment step.
  • A transition with no exact equivalent maps to the nearest one, and one warning lists the substitutions.

Rendering

  • go-webengine/engine v0.45.12 (#82, #85, #89):
    • a display:block table keeps its grid;
    • gradients honour background-size;
    • variable fonts draw at the requested weight;
    • the font shorthand is parsed;
    • PNG output places glyphs at quarter-pixel positions, so word spacing matches Chrome;
    • monospace text keeps bold and italic (Go Mono, four styles).
  • Visible change: the bundled Inter and Lora now draw weights 100 to 599 at their own weight, as Chrome does.
  • A theme's section::after now draws on unpaginated slides too, as in marp-cli (#79).

go-pdfkit v0.24.0.