# Highlights - Typst now produces *accessible* PDFs out of the box, with opt-in support for stricter checks and conformance to PDF/UA-1 - Typst now supports all PDF/A standards - PDFs can now be used as images (thanks to ) - Added support for character-level justification (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`) with individually typed attributes - Added support for multiple headers and subheaders in tables - Added `title` element for displaying the document title - Added `frac.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 for creating krilla!)* - 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. - 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 for guidance on how to select a suitable standard. - 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 for details. - Added `pdf.artifact` function for marking content as not semantically meaningful - Added experimental `pdf.header-cell`, `pdf.data-cell`, and `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. - PDF heading bookmarks now contain the heading's numbering - Attachments - Renamed `pdf.embed` to `pdf.attach` (the old name will remain as a deprecated alias until Typst 0.15) - The `mime` property of `pdf.attach` is now checked for syntactical correctness **(Minor breaking change)** - Fixed parsing of the `data` argument of `pdf.attach` - Attachments now smartly determine whether they should be compressed - Text extraction (i.e. copy paste) - Now works correctly even when multiple different characters result in the same glyph - Spaces between words at which a natural line break occurred are now correctly retained for text extraction - Fixed mapping of hyphenation artifacts to Unicode text - Images - CMYK images now work properly in PDF export - Improved export of text in SVG images with a filter - Improved compatibility of SVG images with Quartz rendering engine (the engine used in Apple Preview) - Improved handling of SVG images with high group nesting depth - Fixed a bug with text in patterns - Fixed gradients with transparency # HTML export - Added support for many more built-in elements (the *Model* category is now fully covered) - The `image` element - The `footnote` and `footnote.entry` element - The `outline` and `outline.entry` element - The `bibliography` element - The `smartquote` element - The `sub` and `super` elements - The `underline`, `overline`, `strike`, and `highlight` elements - The `smallcaps` element - The `lower` and `upper` functions - Added typed HTML API (e.g. `html.div`) with individually typed attributes - 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` targets - The `raw` element - Added syntax highlighting support - Block-level `raw` elements now emit both a `` and a `
`
    tag 

  - The language tag of `raw` elements is now preserved as a `data-lang`
    attribute on the `` tag
    

- The `authors` and `keywords` properties of the `document` function now
  yield corresponding HTML `` tags
  

- The `html.elem` function now supports custom HTML element names
  

- Improved encoding of `html.frame`
  

- Empty attributes are now encoded with shorthand syntax (e.g.
  `html `) 

- 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 

- Fixed encoding of `
` and `