Every article on a TileDown site comes with a PDF. Until now, a page full of tiles produced a PDF that showed some of them as plain text. TileDown 0.15.0 closes that gap: every static tile prints, drawn in the form it has on the page, and nothing prints as raw directive text.
The drawing is done by MarkdownPDF, the PDF engine TileDown uses.
What prints now
Charts written as a tile,
:::tile chart, as a pie, a doughnut, a bar, a line or a scatter chart, with the same lines, legend and axes as achartfence.Timeline and flow. A timeline is dated events down a rail, sorted by date and time as on the page. A flow is rounded boxes in columns, tinted by state and joined by curved arrows. The layout is the page’s own, and one file of box coordinates is read by the tests of both repositories, so a page and its print cannot put a box in a different place.
Pill, progress and KPI. A pill is a tinted box with its label and its state as a word. A progress bar is the count as
37 of 120 (30%)and a drawn bar. A KPI row is figure cards with the wordup,downorflat. The state is never shown by color alone.Callout, call to action, hero and cards, with their inline Markdown and their links.
A table of contents for a page with
toc: true, as a list of links to its headings.Tables that run over several pages repeat their header row.
What stays off the page
The interactive tiles and the recent-posts list mean nothing on paper and are left out. (Since version 0.16.1 an embed prints its title and address and a counter its label.) Two things are not printed yet: the picture of a hero tile, and any SVG image, which the PDF engine cannot draw. An SVG is left out with no placeholder line.
Two labels on the site
The second line under a site’s title is its own version, set with versionName. It used to read v0.5.20 next to the name TileDown, so it looked like the version of the engine. It now reads Site version v0.5.21, and the engine’s version is in the footer: Built with TileDown 0.15.0.
Four optional settings change the wording: versionLabel, footer.engine, footer.engineText and footer.engineURL. They are in config-reference.md in the repository. A site that wants the old line sets versionLabel: to nothing.
A subscribe card that fits
The newsletter card had an email field too narrow for its own placeholder, a button wider than the field, and an empty band under the row. The row is now a wrapping row: the field grows and never gets narrower than its placeholder, and the button goes under the field when the card is narrow.
Upgrade
brew upgrade tiledown. The full list is on the Changelog page.