Quarto 1.5 is out! You can find the current release on the download page.
Below, we’ll highlight the improved Typst support, website enhancements like draft handling and announcement bars, the native Julia engine, and a couple of shortcodes for generating placeholder content. You can see all the changes in the Release Notes.
Typst CSS
We’ve already blogged about one feature that is now available in 1.5: Beautiful Tables in Typst. The CSS properties from HTML tables produced in your code are translated to Typst properties, so the tables you lovingly craft for HTML should look just as good in PDFs produced using format: typst
.
Beyond tables, CSS properties on divs and spans are also translated to Typst properties. So, for example, you could get text with a green background like this:
[span with a green background]{style="background-color:green"}. Here is a
You can read more about using CSS in Typst at Typst Basics: Typst CSS.
Improved Website Draft Support
Quarto 1.5 brings improved support for workflows involving draft posts and pages:
Adds the
drafts
option to thewebsite
key offering new ways to specify drafts: directly in_quarto.yml
, and via metadata includes and profiles.Introduces the
draft-mode
option to thewebsite
key to control how drafts are rendered. Drafts can begone
,unlinked
orvisible
.Adds a draft banner to draft pages that are rendered.
Improves the linking behavior of draft documents. Now, in addition to being excluded from search results, listings, and the sitemap, drafts will not appear in navigation, or be linked from in-text hyperlinks when
draft-mode
isgone
orunlinked
.Changes the behavior of
quarto preview
for drafts. Drafts will bevisible
in previews regardless of thedraft-mode
setting. In particular, this allows an easier way to preview the appearance of draft content in navigation and listings.
Read more at Website Drafts.
Website Announcements
You can now use an announcement
option to add a customizable banner at the top of your website. You can set an icon, make it dismissable, and include markdown formatted content like bold text:
Read about your options at Website Tools: Announcement Bar.
Native Julia Engine
Prior to 1.5, Julia code cells were executed through the Jupyter engine. Now you can opt-in to a native Julia engine:
---
title: Julia without Jupyter
engine: julia
---
Read about the details in Using the julia
engine.
Part of the reason we are excited about this feature is that it was an external contribution. Thank you @jkrumbiegel!
Placeholder Shortcodes
We’ve also added a couple of shortcodes that add placeholder content: lipsum
for text, and placeholder
for images:
{{< placeholder 400 200 format=svg >}} {{< lipsum 1 >}}
This example produces a 400px x 200px SVG image, and one paragraph of Lorem Ipsum text:
Nunc ac dignissim magna. Vestibulum vitae egestas elit. Proin feugiat leo quis ante condimentum, eu ornare mauris feugiat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris cursus laoreet ex, dignissim bibendum est posuere iaculis. Suspendisse et maximus elit. In fringilla gravida ornare. Aenean id lectus pulvinar, sagittis felis nec, rutrum risus. Nam vel neque eu arcu blandit fringilla et in quam. Aliquam luctus est sit amet vestibulum eleifend. Phasellus elementum sagittis molestie. Proin tempor lorem arcu, at condimentum purus volutpat eu. Fusce et pellentesque ligula. Pellentesque id tellus at erat luctus fringilla. Suspendisse potenti.
Read more about their options at Placeholder Images and Placeholder Text.
Acknowledgements
Finally, we’d like to give a huge high five to everyone who contributed to this release by opening issues and pull requests:
AaronGullickson, abduazizR, aborruso, AdaemmerP, adamalfredsson, adamulrich, aghaynes, ALanguillaume, AlbertRapp, allefeld, AndreiBiziuk, andrie, anhi, aravezskinteeth, arnaudgallou, aronatkins, ArthurAndrews, arvindvenkatadri, AshleyHenry15, averms, awhol1, batpigandme, bcdavasconcelos, bhattmaulik, bhogan-mitre, billgeo, BradyAJohnston, cameronraysmith, CeresBarros, christian-million, cpcloud, daslu, davidkane9, debdagybra, dfolio, dhodge180, dmbates, drtingtp, eitsupi, eyayaw, FabienSe, fernandortdias, fkgruber, ForceBru, gcgbarbosa, gimmiereddy, gl-eb, gregswinehart, guilhermegarcia, GuillaumeDehaene, hadley, has2k1, Hemken, hervyqa, hewag1975, hughjonesd, iandol, IULibScholComm, j-horak, jackgerrits, jasonpott, jcheng5, jdossgollin, jebyrnes, jimgar, jimjam-slam, jkrumbiegel, jobrachem, jolars, jonpeake, jrob95, jrtheobald, juliantao, JulienGAMartin, justinaskav, kadykov, KaiWaldrant, kdheepak, kkaja123, kletts, kompre, krishaamer, lamurian, Lextuga007, li-yq, libjohn, liyongg, loreabad6, Luc-UMass, lwjohnst86, m-clark, m-delem, MarcoPortmann, marklhc, martinscripts, memeplex, MHellmund, mhollanders, mine-cetinkaya-rundel, MKDJr, mroberts1, mvuorre, mwouts, ncclementi, ncworstell, nealrichardson, Nesper94, nickvigilante, nmalkin, NMarkgraf, nrichers, olivroy, ozanozbeker, pagiraud, pastorn, pbousquets, pem725, petrbouchal, pgseye, pingumops, pmoris, pschloss, rafaelorozco, rastrau, RegalPlatypus, rgaiacs, Robinlovelace, robolyst, royfrancis, rpchastain, sapphire008, schrammelj, sinamoghimi73, statik, stevengogogo, sun123zxy, szsctt, teecrow, the-solipsist, TomBener, ttalVlatt, tvroylandt, tylermorganwall, Unco3892, Vinnie-Palazeti, WardBrian, wjschne, wklimowicz, xiaoxl, ycrouin
The balloon emoji in the listing and social card image for this post comes from OpenMoji– the open-source emoji and icon project. License: CC BY-SA 4.0