Skip to content

Commit d1a82e8

Browse files
committed
1.9
1 parent 8272886 commit d1a82e8

4 files changed

+76
-0
lines changed
+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
layout: post
3+
title: Typora 1.9
4+
author: typora.io
5+
category: draft-new
6+
tags: [change log, news]
7+
typora-root-url: ../../
8+
typora-copy-images-to: ../../media/new-1.9
9+
redirect_from: "What's-New-1.8/"
10+
---
11+
12+
## New
13+
14+
### Code Block Math
15+
16+
You enable `Code Block Math` in `Preferences Panel``Markdown``Code Block Math` to enable support for Gitlab / GitHub style math block (<https://docs.gitlab.com/ee/user/markdown.html#math>) with following syntax:
17+
18+
~~~gfm
19+
```math
20+
x = {-b \pm \sqrt{b^2-4ac} \over 2a}
21+
```
22+
~~~
23+
24+
It renders as:
25+
26+
<img src="/media/new-1.9/Screenshot 2024-05-19 at 15.42.47.png" alt="Screenshot 2024-05-19 at 15.42.47" style="zoom:50%;" />
27+
28+
Please note that Typora also support inline math like `$a+b$` and math block like:
29+
30+
~~~gfm
31+
$$
32+
a+b
33+
$$
34+
~~~
35+
36+
## Improvements
37+
38+
### EPub Export
39+
40+
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).
41+
42+
<img src="/media/new-1.9/Screenshot 2024-05-19 at 15.53.46.png" alt="Screenshot 2024-05-19 at 15.53.46" style="zoom:50%;" />
43+
44+
### Block Diagram
45+
46+
Mermaid library is now upgrade to version 10.9, which introduces a new Block Diagrams.
47+
48+
<img src="/media/new-1.9/Screenshot 2024-05-19 at 15.56.27.png" alt="Screenshot 2024-05-19 at 15.56.27" style="zoom:50%;" />
49+
50+
For more details, [please click here](https://mermaid.js.org/syntax/block.html).
51+
52+
### Header Anchor Spec
53+
54+
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.
55+
56+
Previously Typora will remove most western punctuation, while remains some Unicode punctuation, now Typora will follow following spec:
57+
58+
```
59+
convert heading string to lowercase words
60+
keep - (hyphen)
61+
replace whitespace with - (hyphen)
62+
convert en dash to --
63+
convert em hash to ---
64+
remove other punctuation
65+
```
66+
67+
## Fix
68+
69+
- Fix XSS on mermaid and math.
70+
- Fix video cannot be fullscreen when user click fullscreen button on video.
71+
- Fix a bug that triple-click on a link in Math block closes the window.
72+
- Shorten recent file path length in recent menu on Windows / Linux.
73+
- Fix an issue that some images backed by cloudflare cannot be loaded by Typora.
74+
- Custom alert text set by CSS styles are not kept after export to PDF / HTML.
75+
- "Debug Mode" is now removed on macOS, users can now debug Typora elements from Safari → Develop menu ([See here for detail](/Debug-Themes/)).
76+
- Improve translations for Slovenian (Boštjan), Czech (Svatopluk Vít), Norwegian Nynorsk (Sjur N Moshagen).
Loading
Loading
Loading

0 commit comments

Comments
 (0)