Typora 1.9

by typora.io

New

Code Block Math

You enable Code Block Math in Preferences PanelMarkdownCode Block Math to enable support for Gitlab / GitHub style math block (https://docs.gitlab.com/ee/user/markdown.html#math) with following syntax:

```math
x = {-b \pm \sqrt{b^2-4ac} \over 2a}
```

It renders as:

Screenshot 2024-05-19 at 15.42.47

Please note that Typora also support inline math like $a+b$ and math block like:

$$
a+b
$$

Improvements

EPub Export

Epub export now adds a “Chapter Level in Outline” option, you could now specify the number of section levels to include in the table of contents. The default is 3 (which means that level-1, 2, and 3 headings will be listed in the contents).

Screenshot 2024-05-19 at 15.53.46

Block Diagram

Mermaid library is now upgrade to version 10.9, which introduces a new Block Diagrams.

Screenshot 2024-05-19 at 15.56.27

For more details, please click here.

Header Anchor Spec

For a bookmark link to a heading in the current file, use a hash symbol followed by the lowercase words of the heading. Remove punctuation from the heading and replace spaces with dashes.

Previously Typora will remove most western punctuation, while remains some Unicode punctuation, now Typora will follow following spec:

convert heading string to lowercase words
keep - (hyphen)
replace whitespace with - (hyphen)
convert en dash to -- 
convert em hash to ---
remove other punctuation 

Other Improvements

Fix