|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: Typora 1.11 |
| 4 | +author: typora.io |
| 5 | +category: new-draft |
| 6 | +tags: [change log, news] |
| 7 | +typora-root-url: ../../ |
| 8 | +typora-copy-images-to: ../../media/new-1.11 |
| 9 | +--- |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +* Outline |
| 14 | +{:toc} |
| 15 | + |
| 16 | + |
| 17 | +## New |
| 18 | + |
| 19 | +### LaTeX delimiters for math |
| 20 | + |
| 21 | +Previously, Typora supports `$` and `$$` for triggering inline and block math modes. However, other systems, like ChatGPT or LMS predominantly utilize `\(` and `\)` for inline math, and `\[` and `\]` for block math. |
| 22 | + |
| 23 | +To improve the compatibility with our Markdown syntax, now, LaTeX delimiters are supported by Typora after enable it in preferences panel (which requires restart Typora to apply). |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +Here are the examples: |
| 28 | + |
| 29 | +| | **Markdown Code** | **Markdown Preview** | |
| 30 | +| ------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | |
| 31 | +| Default Delimiter — Inline Math | `$a \ne 0$` | <img src="/media/new-1.11/截屏2025-07-16 10.47.26.png" alt="截屏2025-07-16 10.47.26" style="zoom:50%;" /> | |
| 32 | +| LaTeX Delimiter — Inline Math | `\( a \ne 0 \)` | <img src="/media/new-1.11/截屏2025-07-16 10.47.26.png" alt="截屏2025-07-16 10.47.26" style="zoom:50%;" /> | |
| 33 | +| Default Delimiter — Block Math | <pre>$$<br/>x = {-b \pm \sqrt{b^2-4ac} \over 2a}<br/>$$</pre> | <img src="/media/new-1.11/截屏2025-07-16 10.48.22.png" alt="截屏2025-07-16 10.48.22" style="zoom:50%;" /> | |
| 34 | +| LaTeX Delimiter — Block Math | <pre>\[<br/>x = {-b \pm \sqrt{b^2-4ac} \over 2a}<br>\]</pre> | <img src="/media/new-1.11/截屏2025-07-16 10.48.22.png" alt="截屏2025-07-16 10.48.22" style="zoom:50%;" /> | |
| 35 | + |
| 36 | +### Move row up / down |
| 37 | + |
| 38 | +Previously you can move row up or down in a table using `Alt` + `Arrow` keys. |
| 39 | + |
| 40 | +Now you can move row or paragraph up and down in lists and all other blocks using `Alt` + `Up`/`Down` keys. |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +## Improvements |
| 45 | + |
| 46 | +### Mermaid |
| 47 | + |
| 48 | +Now mermaid library is updated to version 11.7. |
| 49 | + |
| 50 | +#### Add Radar Chart |
| 51 | + |
| 52 | +See more details [here](https://mermaid.js.org/syntax/radar.html) |
| 53 | + |
| 54 | +````gfm |
| 55 | +```mermaid |
| 56 | +--- |
| 57 | +title: "Grades" |
| 58 | +--- |
| 59 | +radar-beta |
| 60 | + axis m["Math"], s["Science"], e["English"] |
| 61 | + axis h["History"], g["Geography"], a["Art"] |
| 62 | + curve a["Alice"]{85, 90, 80, 70, 75, 90} |
| 63 | + curve b["Bob"]{70, 75, 85, 80, 90, 85} |
| 64 | +
|
| 65 | + max 100 |
| 66 | + min 0 |
| 67 | +``` |
| 68 | +```` |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +#### Add Treemap |
| 73 | + |
| 74 | +See more details [here](https://mermaid.js.org/syntax/treemap.html) |
| 75 | + |
| 76 | +````gfm |
| 77 | +```mermaid |
| 78 | +treemap-beta |
| 79 | +"Category A" |
| 80 | + "Item A1": 10 |
| 81 | + "Item A2": 20 |
| 82 | +"Category B" |
| 83 | + "Item B1": 15 |
| 84 | + "Item B2": 25 |
| 85 | +``` |
| 86 | +```` |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | +#### Other than new diagrams |
| 91 | + |
| 92 | +- Now Typora only export zenuml CSS when needed, which reduced the file size of exported HTML. |
| 93 | +- Fix text in mermaid diagrams get clipped when export to PDF. |
| 94 | +- Fix mermaid code not working under macOS 12. |
| 95 | +- When "Indent first line of paragraph" is enabled, text in mermaid diagrams will not be indented. |
| 96 | +- Fix `---` not correctly rendered in mermaid. |
| 97 | + |
| 98 | +### Copy & Paste |
| 99 | + |
| 100 | +- Math are kept when paste from text generated by ChatGPT and AI tools. |
| 101 | +- Styles are kept when copy from Typora and paste into *WeChat Official Account (微信公众号)*. |
| 102 | +- "Copy without theme styling" now respect the setting of "copy markdown source as plain text”. |
| 103 | +- Fix bug that gif image in clipboard cannot be inserted into markdown document in some cases. |
| 104 | +- Fix a bug that paste a list sometimes not working correctly. |
| 105 | + |
| 106 | +### Video and Images |
| 107 | + |
| 108 | +*Behavior Changes:* |
| 109 | + |
| 110 | +- Typora will now add `controls` attribute for `<video>` tags when drop video into Typora. The `controls` attribute is explained [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video#controls). |
| 111 | +- Images will not contain `referrerPolicy='no-referrer'` by default when export to HTML. If you need `referrerPolicy`, please explicitly set `referrerPolicy` using `<img />` tag, instead of the default Markdown `![]()` syntax for images. |
| 112 | + |
| 113 | +### Emoji |
| 114 | + |
| 115 | +- Fix emoji missing in bold text when export. |
| 116 | + |
| 117 | +- Add options to disable emoji autocomplete when user input `:`. |
| 118 | + |
| 119 | + <img src="/media/new-1.11/截屏2025-07-16 20.47.13.png" alt="截屏2025-07-16 20.47.13" style="zoom:50%;" /> |
| 120 | + |
| 121 | +### Linux |
| 122 | + |
| 123 | +If you use `apt` to install Typora below version 1.11, we recommend you to remove the old keys and replace with the new one. The old `typora.asc` was considered unsafe as it uses SHA1 as digest algorithms. |
| 124 | + |
| 125 | +```shell |
| 126 | +sudo rm /etc/apt/trusted.gpg.d/typora.asc |
| 127 | +``` |
| 128 | + |
| 129 | +After remove the old key, re-add the new key and then install or update Typora: |
| 130 | + |
| 131 | +```shell |
| 132 | +# Add your key |
| 133 | +sudo mkdir -p /etc/apt/keyrings |
| 134 | +curl -fsSL https://downloads.typora.io/typora.gpg | sudo tee /etc/apt/keyrings/typora.gpg > /dev/null |
| 135 | + |
| 136 | +# Add the repo securely |
| 137 | +echo "deb [signed-by=/etc/apt/keyrings/typora.gpg] https://downloads.typora.io/linux ./" | sudo tee /etc/apt/sources.list.d/typora.list |
| 138 | +sudo apt-get update |
| 139 | + |
| 140 | +# install typora |
| 141 | +sudo apt-get install typora |
| 142 | +``` |
| 143 | + |
| 144 | +#### Wayland |
| 145 | + |
| 146 | +We improved compatibility on Wayland, you can launch Typora using following arguments on Wayland: |
| 147 | + |
| 148 | +``` |
| 149 | +--enable-features=UseOzonePlatform --ozone-platform=wayland |
| 150 | +``` |
| 151 | + |
| 152 | +## Bug Fix |
| 153 | + |
| 154 | +### Export |
| 155 | + |
| 156 | +- Fix a bug that list bullet got missing after 999 list items when export. |
| 157 | +- Fix PDF glitch after export on macOS. |
| 158 | + |
| 159 | +### Other Fix |
| 160 | + |
| 161 | +- Fix a bug that when user scroll after filtering content in outline, the filter panel and filter state will exit unexpectedly. |
| 162 | +- Preserve the setting status of zoom with mouse wheel. |
| 163 | +- Fix some code block with "url" mode cannot be rendered |
0 commit comments