context
- New default key
backticks = 3
- The
indent
setting is nowtab_size = 2
, to correspond with Typst's default parameter
- New default key
show_typst
- Implemented for
VersionNumber
,Dates.Date
,Dates.DateTime
,Dates.Period
,Dates.Time
,Docs.HTML
,LaTeXStrings.LaTeXString
, andMarkdown.MD
AbstractFloat
,Irrational
, andSigned
inmarkup
mode are now enclosed in dollar signsBool
inmarkup
mode is no longer prefixed by a number sign- An
AbstractChar
andAbstractString
incode
andmath
mode is no longer escaped and quoted - A
Complex
is no longer parenthesized when one of the terms is zero - Typst parameters are now printed on their own lines using the
indent
anddepth
settings
- Implemented for
- Improved error handling for interpolating incomplete expressions into a
@typst_str
- The
preamble
used at the beginning of Typst source files is now exported render
now supports a custompreamble
- The
show
method with theapplication/pdf
,image/png
, andimage/svg+xml
MIME types now supports- A custom
preamble
Typst
andTypstText
- A custom
- Removed an unnecessary
TypstCommand
constructor
@typst_str
- No longer errors during interpolation when
TypstString
isn't loaded - Handles interpolation and escaped interpolation in the same manner as a
String
@typst_str
syntax and pretty-printing withshow(::IO, ::TypstString)
now correspond
- No longer errors during interpolation when
show_typst
AbstractFloat
values that satisfyisinf
andisnan
now correspond tocalc.inf
andcalc.nan
, respectivelyAbstractString
andDocs.Text
no longer escape dollar signs- Removed incorrect special formatting of
Docs.Text
inmarkup
mode
- A
@typst_cmd
with no parameters no longer inserts an empty parameter