Skip to content

LePub with MyST

Failure

The template has not yet been added to the MyST Templates, so it is not easily accessible for use in MyST.

Start a new MyST project inside the destination folder.

myst init

Usage

Then open myst.yml and add the following export:

exports:
  - format: typst
    template: typst-lepub

You can then set options under the format:

exports:
  - format: typst
    template: typst-lepub
    line_numbers: true

Info

Note that for MyST all option names use underscore (_) instead of hyphen (-):

line_numbers: true # Correct
line-numbers: true # Wrong