Repository navigation
1.4.0
-
PDF exports no longer split what reads as one thing. An alert, a code block or
a table up to half the page's text area, and a list up to a quarter, moves
whole to the next page instead of breaking; a taller one still breaks, with
Typst's own guard against a lone first or last line. An alert that does break
keeps its title with the body; the generic style's H2 rule and both styles'
H5/H6 labels are sticky like every other heading; andfilter.luakeeps a
paragraph that ends in a colon or is at most three words long ("Voorbeeld:",
"Bijv.") with the code, list, table or alert it introduces. A table taller
than the page used to run off it, because pandoc wraps every table in a figure
and Typst does not break figures: it now breaks with its header row repeated.
Thekeep-togetherhelper intemplate.typtakes aratio, so a forked
template can tune the threshold. The price is a few more pages, since a block
that moves whole leaves a gap above the break. -
Heading numbering is off by default, in both export formats and both shipped
styles;export.number_headings: trueincourse.config.ymlturns it on.
Every module or page title that carried a number of its own came out doubled
("1. 1. Je eerste website", "5. 5a. CSS"), becausetemplate.typnumbered
headings in Typst andreference.docxnumbered Heading 1-4 natively, and a
--flaggedexport numbered items "1.0.1." where it drops a subfolder heading.
With the key on, pandoc's--number-sectionsnumbers both formats the same
way, "1", "1.1". The native numbering is gone from both shipped
reference.docxfiles; a forked style keeps its own copy and should drop the
numPrfrom its heading styles too, or the DOCX doubles again with the key
on.--var section-numbering=1.1.still numbers a single PDF run with a Typst
pattern of your choice. -
The style sample rendered its alerts, link card, attachment and page break as
literal::: {...}text: an earlier Prettier pass had joined every fenced div
onto one line, which pandoc does not read as a div. The fences are back on
their own lines andexport-styles/sample.mdis in.prettierignore, since
Prettier's markdown parser has no notion of a fenced div. -
.github/workflows/release.ymlpublishes the GitHub release when av*tag
is pushed, titled with the version and carrying that version'sCHANGELOG.md
section as the notes. Step 5 of the release procedure was the only step with
no command attached, and both 1.2.0 and 1.3.0 were tagged without a release to
show for it, so pushing the tag is now the whole of it. It is gated to this
repository the waytest.ymlis, so a course project that tags its own
material hears nothing from it.scripts/changelog-section.jscuts the
section out and fails loudly when the changelog has none for the version, and
npm testnow checks that the version inpackage.jsonhas a section at all,
which catches a skipped step 1 before the tag is cut rather than after it is
public.