Typeset 0.6.0
Typeset 0.6.0 adds video support to figures, opt-in wide code blocks, and fixes desktop regressions from 0.5.0.
Video Figures
The figure shortcode now automatically detects video files and renders a <video> element with playback controls:
{{ figure(src="/path/to/video.mp4", caption="A video with controls") }}
Supported formats: .mp4, .webm, .mov, .avi. Videos include native controls and playsinline for mobile-friendly playback. All existing figure parameters (caption, id, wide) work the same.
Wide Code Blocks
Code blocks are now narrow by default, matching the content width. For code with long lines, you can opt into wide mode by adding name=wide to the fence:
```rust,name=wide
fn example_with_a_very_long_function_name_that_benefits_from_extra_width() {
// This code block extends into the margins
}
```
Here's a wide code block in action:
fn this_is_a_wide_code_block_that_extends_into_the_margins_for_better_readability_of_long_lines() {
println!("Wide code blocks use Zola's native name annotation—no shortcodes or JavaScript required.");
}
And a regular code block for comparison:
fn normal_width() {
println!("Standard code blocks match content width.");
}
This uses Zola's built-in name annotation (added in v0.20.0) and pure CSS with :has() selector—no JavaScript required.
Desktop TOC Fix
The table of contents now displays correctly on desktop. In 0.5.0, the TOC was incorrectly collapsed by default. It now starts expanded and cannot be collapsed on desktop, while remaining collapsible on mobile.
Code Blocks in Spoilers
Fixed an issue where code blocks inside spoilers lost their padding on mobile. Code blocks within spoiler content now display with proper alignment.
def example():
"""This code block now has correct padding on mobile."""
return "Fixed in 0.6.0"
Expandable Table Button
The expand button on large tables now stays fixed in the top-right corner when scrolling horizontally.
This release adds video support to figures, fixes the desktop regressions introduced in 0.5.0, and adds a new feature for better handling of wide code.