# 0.14.0 ## Highlights - Typst now produces [_accessible_ PDFs](/docs/guides/accessibility/) out of the box, with opt-in support for stricter checks and conformance to PDF/UA-1 - Typst now supports all [PDF/A standards](/docs/reference/pdf/#pdf-a) - PDFs can now be used as [images](/docs/reference/visualize/image/#parameters-format) (thanks to [@LaurenzV](https://github.com/LaurenzV)) - Added support for [character-level justification](/docs/reference/model/par/#parameters-justification-limits) (can significantly improve the appearance of justified text) - Added support for many more built-in elements in HTML export - Added typed HTML API (e.g. [`html.div`](/docs/reference/html/typed/#functions-div)) with individually typed attributes - Added support for multiple [headers](/docs/reference/model/table/#definitions-header) and subheaders in tables - Added [`title`](/docs/reference/model/title/) element for displaying the document title - Added [`frac.style`](/docs/reference/math/frac/#parameters-style) property for producing skewed and inline fractions ## PDF export PDF export was fully rewritten to use the new [`krilla`](https://github.com/LaurenzV/krilla) library, fixing various bugs and enabling many improvements. Known fixes are listed below, but there will likely be other changes in how the output behaves. If you spot any regressions, please [report them on GitHub](https://github.com/typst/typst/issues). _(Thanks to @LaurenzV for creating krilla!)_ [#5420](https://github.com/typst/typst/issues/5420) - Typst now produces _accessible_ PDFs out of the box. Such documents are suitable for consumption in a wide range of circumstances. That not only includes consumption by people with permanent or temporary disabilities, but also by those with different devices or preferences. - Typst PDFs are now _tagged_ by default. _Tags_ are rich metadata that PDF viewers can use to make the document consumable in other ways than visually (e.g., through a screen reader). - In addition, Typst can now emit documents conforming to the PDF/UA-1 standard. (PDF/UA-2 is not yet supported, but planned.) - There is an increasing amount of existing and upcoming legislation requiring documents to be accessible, for instance, the European Accessibility Act and the Americans with Disabilities Act. - For more details on all of this, read the new [Accessibility Guide](/docs/guides/accessibility/). - Typst now supports all PDF/A standards: PDF/A-1b, PDF/A-1a, PDF/A-2b, PDF/A-2u, PDF/A-2a, PDF/A-3b, PDF/A-3u, PDF/A-3a, PDF/A-4, PDF/A-4f, and PDF/A-4e. See the [expanded PDF/A documentation](/docs/reference/pdf/#pdf-a) for guidance on how to select a suitable standard. [#5420](https://github.com/typst/typst/issues/5420) [#7038](https://github.com/typst/typst/issues/7038) - Typst now supports the PDF versions 1.4, 1.5, 1.6, and 2.0 in addition to PDF 1.7. See the [relevant section of the PDF documentation](/docs/reference/pdf/#pdf-versions) for details. [#5420](https://github.com/typst/typst/issues/5420) - Added [`pdf.artifact`](/docs/reference/pdf/artifact/) function for marking content as not semantically meaningful [#6619](https://github.com/typst/typst/issues/6619) - Added experimental [`pdf.header-cell`](/docs/reference/pdf/header-cell/), [`pdf.data-cell`](/docs/reference/pdf/data-cell/), and [`pdf.table-summary`](/docs/reference/pdf/table-summary/) functions for enhancing accessibility of documents with complex tables. These functions are guarded by the `a11y-extras` feature. They do not have a final interface and will be removed in the future, either through integration into table functions or through full removal. [#6619](https://github.com/typst/typst/issues/6619) - PDF heading bookmarks now contain the heading's numbering [#6622](https://github.com/typst/typst/issues/6622) - [Attachments](/docs/reference/pdf/attach/) - Renamed `pdf.embed` to [`pdf.attach`](/docs/reference/pdf/attach/) (the old name will remain as a deprecated alias until Typst 0.15) [#6705](https://github.com/typst/typst/issues/6705) - The [`mime`](/docs/reference/pdf/attach/#parameters-mime-type) property of `pdf.attach` is now checked for syntactical correctness **(Minor breaking change)** - Fixed parsing of the [`data`](/docs/reference/pdf/attach/#parameters-data) argument of `pdf.attach` [#6435](https://github.com/typst/typst/issues/6435) - Attachments now smartly determine whether they should be compressed [#6256](https://github.com/typst/typst/issues/6256) - Text extraction (i.e. copy paste) - Now works correctly even when multiple different characters result in the same glyph [#5420](https://github.com/typst/typst/issues/5420) - Spaces between words at which a natural line break occurred are now correctly retained for text extraction [#6866](https://github.com/typst/typst/issues/6866) - Fixed mapping of hyphenation artifacts to Unicode text [#6799](https://github.com/typst/typst/issues/6799) - Images - CMYK images now work properly in PDF export [#5420](https://github.com/typst/typst/issues/5420) - Improved export of text in SVG images with a filter [#5420](https://github.com/typst/typst/issues/5420) - Improved compatibility of SVG images with Quartz rendering engine (the engine used in Apple Preview) [#5420](https://github.com/typst/typst/issues/5420) - Improved handling of SVG images with high group nesting depth [#5420](https://github.com/typst/typst/issues/5420) - Fixed a bug with text in patterns [#5420](https://github.com/typst/typst/issues/5420) - Fixed gradients with transparency [#5420](https://github.com/typst/typst/issues/5420) ## HTML export - Added support for many more built-in elements (the [_Model_ category](/docs/reference/model/) is now fully covered) - The [`image`](/docs/reference/visualize/image/) element [#6578](https://github.com/typst/typst/issues/6578) - The [`footnote`](/docs/reference/model/footnote/) and [`footnote.entry`](/docs/reference/model/footnote/#definitions-entry) element [#6917](https://github.com/typst/typst/issues/6917) - The [`outline`](/docs/reference/model/outline/) and [`outline.entry`](/docs/reference/model/outline/#definitions-entry) element [#6606](https://github.com/typst/typst/issues/6606) - The [`bibliography`](/docs/reference/model/bibliography/) element [#6952](https://github.com/typst/typst/issues/6952) - The [`smartquote`](/docs/reference/text/smartquote/) element [#6710](https://github.com/typst/typst/issues/6710) - The [`sub`](/docs/reference/text/sub/) and [`super`](/docs/reference/text/super/) elements [#6422](https://github.com/typst/typst/issues/6422) - The [`underline`](/docs/reference/text/underline/), [`overline`](/docs/reference/text/overline/), [`strike`](/docs/reference/text/strike/), and [`highlight`](/docs/reference/text/highlight/) elements [#6510](https://github.com/typst/typst/issues/6510) - The [`smallcaps`](/docs/reference/text/smallcaps/) element [#6600](https://github.com/typst/typst/issues/6600) - The [`lower`](/docs/reference/text/lower/) and [`upper`](/docs/reference/text/upper/) functions [#6585](https://github.com/typst/typst/issues/6585) - Added typed HTML API (e.g. [`html.div`](/docs/reference/html/typed/#functions-div)) with individually typed attributes [#6476](https://github.com/typst/typst/issues/6476) - For example, to generate a `video` element you can now write `#html.video(width: 400, src: "sunrise.mp4")` instead of `#html.elem("video", attrs: (width: "400", src: "sunrise.mp4"))`. Note how the `width` attribute takes an integer instead of a string. - Added support for intra-doc [`link`](/docs/reference/model/link/) targets [#6602](https://github.com/typst/typst/issues/6602) - The [`raw`](/docs/reference/text/raw/) element - Added syntax highlighting support [#6691](https://github.com/typst/typst/issues/6691) - Block-level `raw` elements now emit both a `` and a `
` tag [#6701](https://github.com/typst/typst/issues/6701)
  - The [language tag](/docs/reference/text/raw/#parameters-lang) of `raw` elements is now preserved as a `data-lang` attribute on the `` tag [#6702](https://github.com/typst/typst/issues/6702)
- The [`authors`](/docs/reference/model/document/#parameters-author) and [`keywords`](/docs/reference/model/document/#parameters-keywords) properties of the `document` function now yield corresponding HTML `` tags [#6134](https://github.com/typst/typst/issues/6134)
- The [`html.elem`](/docs/reference/html/elem/) function now supports custom HTML element names [#6676](https://github.com/typst/typst/issues/6676)
- Improved encoding of [`html.frame`](/docs/reference/html/frame/) [#6605](https://github.com/typst/typst/issues/6605)
- Empty attributes are now encoded with shorthand syntax (e.g. ``) [#6479](https://github.com/typst/typst/issues/6479)
- Zero-sized horizontal weak spacing (`h(0pt, weak: true)`) does not cause a "was ignored during HTML export" warning anymore, so it can be used to destruct surrounding spaces without producing any output, as in paged export [#6917](https://github.com/typst/typst/issues/6917)
- Fixed encoding of `
` and `