本文へ移動

Zettlr バージョン履歴

Hendrik Erz · プロジェクト管理、検索、引用、分割表示、出版用のエクスポートに対応した、ローカルのMarkdown執筆環境です。

Cask執筆とメモ 1.4万
インストールコマンド
brew install --cask zettlr
過去 30 日間のインストール数
1,331
Appランキング 265 位
過去1年間のインストール数
7687
過去365日間の合計
最新バージョン
4.11.0
ダウンロードサイズ
203MB
dmg
更新頻度
2週間ごと
過去30日間に2回リリース
  1. 4.11.0

    最新

    OpenNavo編集部 Homebrewへの登録

    互換性macOS 13 以降

    Zettlr 4.11.0 はリンクとカスタムコマンドの安全性を高め、コメントのショートカットを復元しました。

    Zettlr 4.11.0 は、未知のプロトコルのリンクを開く前に確認を求め、カスタム書き出しコマンドを既定でシェル経由で実行しなくなりました。

    バージョン 4.11.0、2026 年 11 月 26 日公開。出典:https://github.com/Zettlr/Zettlr/releases/tag/v4.11.0

    • カスタム書き出しコマンドは既定でシェルを使わなくなりました。シェルが必要な場合は「環境設定 → インポート/エクスポート → カスタムコマンド」でコマンドごとに新しい shell オプションを有効にします。勧告 GHSA-qp9r-5xcv-35gx(任意のシェル実行)を修正。
    • http(s) 以外のプロトコルのリンクを開く前に確認を求めるようになり、信頼するプロトコルは詳細設定で管理できます。勧告 GHSA-4c93-g77j-cx8w(リモートコード実行のリスク)を修正。
    • コメントのショートカットを復元・統一しました。Cmd/Ctrl-/ は選択行のコメントを切り替え、Cmd/Ctrl-Alt-M はカーソル位置にコメントを挿入します。
    • 表のセル内の画像プレレンダリングと、macOS のツールバー検索欄が入力できない問題を修正。
    • すでにダークモードを設定している場合、Mermaid の図がライトテーマのままにならないよう修正。
    • Linux では、Zettlr が D-Bus からデスクトップ環境のアクセントカラーを取得します。
  2. 4.10.0

    GitHub Release Homebrewへの登録

    互換性macOS 13 以降

    Quality of Life Improvements | Cleanup | Fixes

    This new update of Zettlr primarily fixes things that were either broken for some time, or broke in 4.9. However, it also includes a set of features and other improvements that will come in handy.

    Among the most notable changes in this update are: (1) attachments specified in BibTeX or BibLaTeX libraries are properly opened via the context menu in Zettlr; (2) Mermaid diagrams will render again; (3) keywords and tags in YAML frontmatters are clickable again; (4) we fixed a bunch of shortcuts that stopped working after the custom shortcut update; (5) the LanguageTool linter now additionally checks various text-fields in your frontmatters; and (6) we have begun homogenizing Zettlr's UI across all platforms. macOS-users should not see many differences, but on Windows and Linux, the app will look considerably different. This change does not affect the placement or functionality of any UI elements, only their styling.

    There's much more that has changed, so we again invite you to read the Changelog below before updating. Happy writing!

    Do you enjoy Zettlr? Then consider making a donation to help us pay for the development costs. You can donate monthly on Patreon or once via PayPal. Additionally, you can directly sponsor Hendrik Erz on GitHub or send a tip on Ko-Fi. Thanks for your support!

    Changelog

    GUI and Functionality

    • Feature: The context menus for links and images now also feature various items that may be useful for formatting aspects of the link/image descriptions (#6417).
    • Feature: Make the "find next" and "find previous" commands of the editor search configurable. Previously, both Mod-g and F3 would move to the next search result, but after implementing custom shortcuts, these two commands were left unconfigurable and hard-coded to Mod-g. These are now configurable so that you can change the default keybinding of Mod-g to F3 if you wish (#6575).
    • Feature: The LanguageTool linter now also lints text-only properties in the frontmatter, using the same language as the rest of the document. This allows spotting issues with these metadata fields as well. Currently, the linter includes in its detection the following properties:
      • title
      • subtitle
      • abstract
      • abstract-title
      • description
      • shorttitle
      • shortsubtitle
      • thanks
    • Change: The styles and layouts of various UI components have been adjusted. The following components should now look mostly the same across all operating systems:
      • Toolbar
      • File Tree
      • Sidebar
    • Change: Removed the .md extension from the default new filename pattern in the Advanced Preferences menu. This pattern is used as the filename, so the extension is unnecessary. Previously, creating a new file with the default pattern would result in the .md extension being added twice to markdown files, or added incorrectly to non-markdown files. Existing users should update the pattern manually by removing .md from it. For new installations, the pattern will be correct. (#6638).
    • Change: The layout of the document information popover is now improved. We have moved the bold styling over to the actually important parts, improved legibility of the popover, and included more information -- notably, regardless of which unit (words or characters) you select in the preferences, the popover will now display both numbers, with your preferred one clearly visible.
    • Fixed a misaligned size distribution between the file manager, editor view, and sidebar. Now, when double-clicking the dividers between these three components, they will resize so that both sidebars take up 20% of the window width, as opposed to a distribution of 20% for the file manager and ca. 15% for the sidebar. This way, both sidebars of the main window are visually equally sized.
    • Fixed a bug where Zettlr would never load attachments from your main database if that database was in BibTeX or BibLaTeX format, as a small logical error made the relevant code for retrieving attachments never find the database in memory and thus would always fall back to attempting to contact Zotero, which would, logically, fail for JabRef users (#6619).
    • Library loading on boot is now asynchronous, also we register a long-running task during database loads to visualize especially the loading of large library files.
    • Fixed a bug that prevented Mermaid diagrams from rendering due to an underlying bug in the new API (#6625).
    • Fixed an issue that would cause full-text searches to start even as the input field was still composing non-latin text (#6597; #6604).
    • Fixed the spacing on the changelog entries to make it more pleasant to read.
    • Fixed an issue that could, under the right circumstances, write unusual values for resized split views into the configuration, necessitating a configuration modification to render Zettlr usable again (#5829).
    • Fixes various issues pertaining to keywords/tags which are present in YAML frontmatters of files. Zettlr now again correctly detects these and they are clickable, yielding a search for keywords, which also includes keywords with spaces (#2443; #2590; #4498; see PR #6496).
    • Fixed a 404-link to an old documentation page in the onboarding dialog.
    • Fixed the LanguageTool language overrides. Previously, if you wanted to change the language in which LanguageTool would check your document via the lang property (e.g., lang: fr to force French instead of autodetection), you had to reload the entire document. Now changes are detected on the fly as you modify the lang property in the YAML frontmatter.
    • Fixed the styles of both subscripts (e.g., H~2~O) and superscripts (e.g., 2^10^). Previously, both types of elements were not displayed using a small font and set to super or sub alignment.
    • The formatting characters for subscripts and superscripts are now appropriately hidden if "Render emphasis" is turned on.
    • Fixed many of the newly customizable shortcuts which would mostly work on just macOS, since we accidentally declared the Mac-specific Command-key to be part of the shortcut, instead of also providing an alternative with the Control key. We remain puzzled why nobody complained about this issue since it affected quite a few important shortcuts. (If you are reading this right now, you're not included in this statement ;).

    Under the Hood

    • Update Electron to v44.10.
    • Update Pandoc to v3.14. Caution: Pandoc 3.13 has switched its underlying YAML parser. For the most part, this change should not affect you, but it could if you relied on odd behavior of YAML, such as treating no as false instead of a string. If you receive errors during exports, this is a potential cause.
    • Update the gettext-parser to v10.
    • Added error-handling code in case titlebar overlays cannot be set for windows (see #6417).
    • Exchanged biblatex-csl-converter with bibliojson.
    • Refactor the splash screen to silence an error caused by a benign race condition during the boot sequence.
    • Pin the AppImage toolset in Electron builder to use a more modern one which depends on fuse3 instead of the deprecated fuse2 library. This change must be reverted once Electron builder is updated to v27 (#6632).
    • Refactored the render-code plugin to allow for a generic set of persistent decorators for various elements.

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.9.0...v4.10.0

  3. 4.9.0

    OpenNavo編集部 Homebrewへの登録

    互換性macOS 13 以降

    繰り返し発生する更新確認エラーを修正し、参照形式の画像表示を追加。eMudhra 証明書の脆弱性を緩和し、macOS 12 のサポートを終了しました。

    繰り返し発生する更新確認エラーを修正し、参照形式の画像表示を追加。eMudhra 証明書の脆弱性を緩和し、macOS 12 のサポートを終了しました。

    Source: https://github.com/Zettlr/Zettlr/releases/tag/v4.9.0

  4. 4.8.0

    展開

    OpenNavo編集部 Homebrewへの登録

    互換性macOS 12 以降

    注意書きブロックへの対応を追加し、全文検索の演算子の動作を修正しました。

    変更点
    注意書きブロックに対応しました。全文検索でスペース区切りの検索語に、ドキュメントどおりANDを適用するようにしました。ORで検索語の候補を指定する際に、明示的なパイプ演算子を必須にしました。アゼルバイジャン語を追加し、コミュニティによる翻訳を更新しました。ファイルのタイトル、タイトルバーのスタイル、ツールバーの配置を改善しました。

    注意書き(admonition)機能を追加し、全文検索演算子の動作を修正します。

    • 注意書き機能への対応を追加します。
    • スペースで区切られた全文検索の語句に、ドキュメントの記載どおりANDを適用します。
    • OR検索で代替の語句を指定するには、明示的なパイプ演算子が必要になります。
    • アゼルバイジャン語を追加し、コミュニティによる翻訳を更新します。
    • ファイルのタイトル、タイトルバーのスタイル、ツールバーの配置を改善します。

    出典:公式バージョンノート。

  5. 4.7.0

    展開

    OpenNavo編集部 Homebrewへの登録

    カスタムショートカットと、エディター独自の外観設定を追加します。

    変更点
    キー操作の記録と競合検出に対応した、カスタマイズ可能なショートカットを追加します。アプリケーションのテーマとは別のテーマをエディターで使用できるようにします。長時間実行されるタスクの通知からファイルを開けるようにします。開いている単独ファイルの全文検索を修正します。Macでメインウィンドウが開いていない場合の、Finderからのファイルの開き方を修正します。

    カスタムショートカットと、エディター独自の外観設定を追加します。

    • キー入力の記録と競合検出に対応した、カスタマイズ可能なショートカットを追加します。
    • アプリケーションのテーマとは別のテーマをエディターで使用できるようにします。
    • 長時間実行されるタスクの通知からファイルを開けるようにします。
    • 開いている単独ファイルの全文検索を修正します。
    • Macのメインウィンドウが開いていないときに、Finderからファイルを開く際の問題を修正します。

    出典: 公式バージョンノート。

  6. 4.6.0

    展開

    OpenNavo編集部 Homebrewへの登録

    全文検索を刷新し、エディターの表示スタイルとナビゲーションを修正します。

    変更点
    全文検索を書き直し、検索の自動補完を改善します。検索で大文字と小文字を区別するかどうかを選べるようにします。Elixirのコードブロックに構文ハイライトを追加します。表内のリンクのクリックと、リンクが二重に開く問題を修正します。引用符を曲線型にするテキスト変換を追加します。フォーカスの位置に関係なく、Escapeで検索パネルを閉じられるようにします。

    全文検索を刷新し、エディターのスタイルとナビゲーションを修正しました。

    • 全文検索を書き直し、検索の自動補完を改善しました。
    • 大文字と小文字を区別する検索と、区別しない検索を選択できるようにしました。
    • Elixirのコードブロックのハイライト表示を追加しました。
    • 表内のリンクのクリックと、リンクが二重に開く問題を修正しました。
    • 引用符を曲線型に変換する「Curl quotes」テキスト変換を追加しました。
    • フォーカスの位置に関係なく、Escapeで検索パネルを閉じられるようにしました。

    出典:公式バージョンノート。

  7. 4.5.0

    展開

    GitHub Release Homebrewへの登録

    Task Indicator | Custom CSS Improvements | Bug fixes and performance improvements

    This update primarily brings two new features to the table: A visual task indicator for long-running tasks, and great improvements in the experience for Custom CSS users.

    First, our new long-running task indicator gives you a better overview and insight into any task that you perform in Zettlr that can take long, such as exporting projects to PDF. Now, whenever you start a task that might take a while, Zettlr will show an indicator in the toolbar. It encodes several pieces of information, such as how many tasks are running, how many have failed, and how many were successful. Click the indicator to see more details for each task, including an explicit run time. Once you "clear" the tasks, the icon will disappear again until you start new tasks. If you have hardware acceleration disabled, Zettlr will only show an icon, but if you keep it enabled, you will see an animation.

    Second, we have cleaned up the editor CSS. More specifically, the editor themes now make use of CSS variables to style most of their content. This can greatly reduce the complexity for those of you who want to use custom CSS. However, this also means that some custom CSS may break during this update, so make sure you adjust any CSS after updating.

    Besides this, this update fixes a few additional bugs, most visibly/notably missing icons in the status bar. See the changelog below for all changes.

    Do you enjoy Zettlr? With the recent spikes in SSD and RAM costs, our server costs have skyrocketed. Consider donating to help us pay for the development costs. You can donate monthly on Patreon or once via PayPal. Additionally, you can directly sponsor Hendrik Erz on GitHub or send a tip on Ko-Fi. Thanks for your support!

    Changelog

    GUI and Functionality

    • Feature: Long-running background tasks are now visually indicated with a toolbar icon. This allows users to check on longer-running tasks such as project exports or the re-indexing of new workspaces and observe the progress as it happens.
    • Add HCL/Terraform fenced code block support (#6302).
    • Fixed Mermaid Chart labels not showing up (#6313).
    • Fixed icons in the statusbar not working.
    • Update Spanish (es-ES) translations (#6320).

    Under the Hood

    • Updated Electron to v41.3.0.
    • Update vue-virtual-scroller to v3.0.0.
    • Fixed an issue where the config provider would not emit the old version correctly (context: #6311).
    • Breaking: Refactored the editor themes (#6229). Now styling the app with Custom CSS is easier and should work more straight forward, since there are many CSS variables that you can peruse to adjust groups of elements at once. Note that this change might break your Custom CSS. Make sure to check anything after setup, and adjust it according to your liking.
    • Centralized DOMPurify functionality and default configuration in a new utility function, that also allows icons using cds-icon.
    • Switch from ts-node to tsx for running unit tests.
    • Explicitly declare Zettlr as a CommonJS project.
    • Change the Object.create(null) contraption to hold BibTeX attachments to a regular object to simplify the structure and unit tests.

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.4.0...v4.5.0

  8. 4.4.0

    展開

    GitHub Release Homebrewへの登録

    Security Fixes | File Manager Improvements | Bug Fixes

    This update improves primarily on two fronts: the file manager and how you can navigate your files, and the security model of the app.

    First, this update brings improvements in the file manager, making it easier for you to navigate all your files and folders. This includes a few bug fixes that improve the behavior of the file manager. For example, opening up folders of containing files now works more reliably, and the file manager once again scrolls any newly activated file into view.

    Second, we have heavily increased the safety when using the app. We now disallow more potentially dangerous code from executing and have overhauled the security model of the app to better reflect how users interact with the app. As always, you can view the full changelog below.

    Do you enjoy Zettlr? With the recent spikes in SSD and RAM costs, our server costs have skyrocketed. Consider donating to help us pay for the development costs. You can donate monthly on Patreon or once via PayPal. Additionally, you can directly sponsor Hendrik Erz on GitHub or send a tip on Ko-Fi. Thanks for your support!

    Changelog

    GUI and Functionality

    • Feature: The app now remembers if the file manager was open or closed across restarts and applies this setting on each start (#3679).
    • Feature: The names of open folders in the file manager tree will now remain sticked to the top of the file manager as you scroll through its list of children. This is especially helpful in the "combined" file manager mode with folders containing many files and subfolders (such as reading notes or Zettelkasten folders).
    • Add strikethrough to the Markdown AST parser (#6263).
    • Fixed Markdown-to-HTML output to generate more valid HTML. This makes comparisons with DOM-inserted HTML deterministic and should reduce the amount of updates especially for complex widgets such as tables by a lot.
    • Reduced amount of image updates in the editor. This may increase performance especially for long documents with many images.
    • Fixed containing directories not uncollapsing when a containing file was made active.
    • Upon switching between files, the file tree now consistently scrolls to the affected file, making working with larger workspaces easier.
    • The scroll-behavior for scrolling files into view has changed from instant to smooth.
    • Fixed a small bug that could throw off switching between different file manager modes.
    • Fixed the cursor scroll margin again. This means that, after years of it not working, as you type there will now be some margin towards the top or bottom of the editor window, preventing the cursor to "stick" to the edge of the editor.
    • Update pt-PT translations (#6282).
    • Fixed an issue that would lead to unexpected navigation behavior across the file manager (#4329).
    • Fixed an issue where the file list would follow slightly different filtering rules than the file tree due to different function implementations.
    • Harmonized font usage to System fonts across the app (#5125).
    • Improve Mermaid chart error reporting (#6291).

    Under the Hood

    • Switch from sanitize-html to DOMPurify for HTML sanitization, since the latter has much, much less issues with various types of exotic XML-type tags such as MathML.
    • Updated Electron to v41.1.1.
    • Security: Disallow any and all inline-JavaScript across all browser windows.
    • Security: Enforce loading remote resources using HTTPS.
    • Security: Generously spread HTML sanitization across the application. The following changes have been made:
      • Moved HTML sanitization to the edge (directly to the injection sinks).
      • Removed HTML sanitization from the translation helpers. The reason is that DOMPurify does not work out of the box in the main process, so we also removed the sanitization from the renderer-translation helper. However, this is safe since we do not insert the translations into HTML injection sinks. Also, this way we can apply DOM sanitization at the edge, and no longer at the beginning of the chain.
      • This also means that HTML is no longer allowed in translation strings.
      • Armed the v-html-rule again, and removed all v-html directives, and in instances where this was not possible, explicitly disable this with a reason.

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.3.1...v4.4.0

  9. 4.3.1

    展開

    GitHub Release Homebrewへの登録

    Bug Fixes and Performance Updates

    For this small update, we've fetched the polishing cloth and improved things here and there, but nothing big has happened. The one notable fix is that Zettlr now properly escapes path names passed to shell commands during exports. In very specific circumstances, it was possible to make Zettlr execute unexpected commands during exports. This update improves this behavior so that it is no longer possible.

    Do you enjoy Zettlr? With the recent spikes in SSD and RAM costs, our server costs have skyrocketed. Consider donating to help us pay for the development costs. You can donate monthly on Patreon or once via PayPal. Additionally, you can directly sponsor Hendrik Erz on GitHub or send a tip on Ko-Fi. Thanks for your support!

    Changelog

    GUI and Functionality

    • Update pt-PT translations (#6262).
    • Translated the tutorial to Japanese (#6260).

    Under the Hood

    • Escape file and directory paths passed to runShellCommand.
    • Update Pandoc to v3.9.0.2.
    • Updated some dependencies.
    • Removed duplicate FSAL descriptor fetching.
    • Improved resiliency of the descriptor fetching; now if a renderer requests an array of paths, the FSAL does not fail. Instead, it simply omits those descriptors from the return array and logs an error (context: #6272).
  10. 4.3.0

    展開

    GitHub Release Homebrewへの登録

    New File Manager Controls | QoL Updates | Bug Fixes | Security Fixes

    This release brings many great new things to Zettlr. Besides the obvious batch of bug fixes, this update focuses on improved citation quality, and findability of your files in the file manager. Specifically, this update improves the file manager by allowing you to sort your workspaces and add colors to your folders. You can also close all standalone files or workspaces with a few clicks, if you so wish. In terms of citation support, Zettlr now shows a tooltip after some delay if you hover over a citation with your mouse, showing you the generated bibliography for those items to make sure you actually cite the correct work.

    Besides that, you now get CSS autocompletion in the Custom CSS editor. The boot sequence of Zettlr is now much more resilient towards missing files, folders, or weird permission errors, so you should have a much better experience in volatile contexts. We also fixed a few potential security issues where unsanitized HTML was rendered in the main window that could possibly be abused by malicious actors.

    To see what exactly has changed in detail, please review the changelog below.

    Do you enjoy Zettlr? Consider donating to help us pay for the development costs. With the recent spikes in SSD and RAM costs, our server costs have skyrocketed. You can donate monthly on Patreon or once via PayPal. Additionally, you can directly sponsor Hendrik Erz on GitHub or send a tip on Ko-Fi. Thanks for your support!

    Changelog

    GUI and Functionality

    • Feature: Added a citation tooltip. When hovering over a citation cluster in your documents with your mouse, this will generate a small bibliography of just the items contained in the citation cluster and display it using the tooltip. This allows you to quickly check which item you cited exactly.
    • Feature: The Custom CSS editor now offers autocomplete assistance (#6226).
    • Feature: Added dedicated math code block syntax highlighting to add MathTeX to files without rendering (#6226).
    • Feature: You can now close all standalone/root files as well as all workspaces from a new file manager context menu that opens via right-click onto the section headers or with a click on the corresponding button. In addition, you can collapse all folders with a simple click (#6209).
    • Feature: You can now manually change the sorting of your workspaces. By default, Zettlr automatically sorts your workspaces by name. However, sometimes you may wish to change the ordering. To do so, use the new file manager context menu and select "Sort workspaces…". This will open a popover that allows you to change the workspace ordering using drag and drop. As soon as you overwrite the sort order manually, this will disable automatic sorting from here on. Newly opened workspaces will simply be appended at the end of the list of open workspaces. To re-enable automatic sorting of your workspaces, use the new setting in the file manager preferences, or click the corresponding button in the sort popover.
    • Feature: You can now assign custom accent colors to folders across your workspaces to make them easier identifiable. This aids the existing custom icons that you can already use to differentiate folders. You can assign one of seven built-in colors to every directory: blue, purple, rose, red, orange, yellow, and green. For friends of Custom CSS: These are specified as CSS variables so that you can adjust them if you wish. The pattern is: --accent-<color>.
    • Fixed potential crashes when standalone/root files or workspaces have been removed while Zettlr was closed (#6223). Recognizes PR #6225 by @SergioChan who started this effort. Previously, the re-indexing process when Zettlr boots would not check for the existence of open paths, causing crashes.
    • Show citation menu when right-clicking on a non-rendered citation (#6213).
    • Updated ja-JP translations (#6227; #6230; #6249).
    • Updated zh-CN translations (#6243).
    • Fixed an issue with improper HTML sanitization in the file preview tooltip, which would escape unusual HTML (such as KaTeX equations) instead of allowing it (#6221).
    • Fixed an issue that might prevent the correct app icon to show up for the AppImage release of Zettlr.
    • Re-enabled the broken System Verilog syntax highlighting. However, the code highlighting uses the Verilog parser, since no dedicated System Verilog parser is available, so there may be inconsistencies in highlighting.
    • Allow more emojis in tags (#6202).
    • Fix crashes when directories aren't accessible by the app (#6172).
    • Improve autocorrect handling. Now, users can undo an unwanted replacement (Ctrl/Cmd+Z) without losing the inserted space or new line (#6210).
    • Made the app more resilient in light of missing workspaces or root files. Now, crashes on startup due to missing standalone files or workspaces should be much less frequent and the app should be more stable.
    • Fixed a regression that would overlay the default menu on top of the citation menu on non-macOS clients, rendering it unusable (#6213).
    • Fixed an issue that would make code blocks exceed the size of the preview window in some instances.
    • Fix footnote preview styling in footnote tooltips.
    • Fixed custom export profiles not working during project exports (#6235).
    • Fixed text color of disabled menu items on Linux and Windows.
    • Fixed "Find in file" menu item (#6234).
    • Improve file name extension handling (#6194).

    Under the Hood

    • The md2html utility function now has a new flag, sanitizeHTML that you can use to make the function properly sanitize potentially harmful HTML in situations where HTML shall be inserted into the DOM without endangering the display of special elements such as equations.
    • The app now sanitizes HTML in more cases where it is inserted into the DOM. This preemptively prevents attacks using malicious HTML in the table of contents, the print window, and footnote tooltip rendering. Note that this does not apply when copying Markdown as HTML, since in this case we expect the user wishes to retain every bit of HTML (also, in that case, they usually have seen the code, making possible attacks unlikely).
    • Updated various code syntax highlighting parsers from the legacy mode to the corresponding dedicated parsers (#6226).
    • Since JSON.stringify is sensitive to object insertion order, we switched the detection logic whether directory settings are all on default to assert.deepStrictEqual. This means that we now compare the values of the properties instead of their ordering.
    • Harden the TableEditor by properly sanitizing possibly unsafe HTML using the new sanitizeHTML option on the nodeToHTML function (via md2html).

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.2.1...v4.3.0

  11. 4.2.1

    展開

    GitHub Release Homebrewへの登録

    Bug Fixes | Updated Dependencies

    This update only brings minor things to the table. Most notably, this update fixes the logic of Zettlr to handle extensions to Pandoc readers and writers. Previously, extensions were always removed from readers and writers whenever you imported or exported a file. Now, if you specify an extension, this will work again. This means, previously, if you specified a writer in your defaults files disabling the “smart” extension (e.g., writer: docx-smart), Zettlr would strip the extension away. Now, these extensions are retained correctly on each import or export.

    In addition, this update fixes a few oddities after the Zotero 8 update, and updates all dependencies to the newest available versions.

    Changelog

    Fixed Pandoc Extension Parsing

    If you ever used Pandoc extensions with Zettlr, you may have wondered why they sometimes appeared not to work. After a report by a user, we have found out that Zettlr never actually parsed these correctly. We decided to make this a bit more visible in the changelog since your exports may have been broken without you realizing. This way you can verify any of your exports.

    GUI and Functionality

    • Fix indenting and tab insertion behavior (#6196).
    • Fix Zettlr not correctly parsing Pandoc extensions (#6212).
    • Improved error handling when opening PDF attachments.
    • Make Zettlr more resilient when CSL JSON library files are malformed.

    Under the Hood

    • Add unit tests for parseReaderWriter utility function.
    • Upgrade Electron to v40.8.0.
    • Upgrade Pandoc to v3.9.0.
    • Upgrade ESLint to v10.0.3.
    • Properly parse and check the returned results from the BetterBibTex JSON RPC API when querying PDF attachments.
    • Zettlr no longer assumes CSL JSON files are well-formed. Instead, each item is checked for the presence of required keys, and is skipped if there is an issue. This ensures library files can also be loaded partially.

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.2.0...v4.2.1

  12. 4.2.0

    展開

    GitHub Release Homebrewへの登録

    Preview Mode Updates | Bug Fixes | Quality of Life Improvements

    This update brings three distinct sets of improvements. First, it contains a series of new features for the preview mode, which make blockquotes now render with a vertical bar instead of italicized font. In addition, Pandoc divs and spans are now pre-rendered and apply any custom styling you have applied, if applicable.

    Second, it contains a bunch of minor bug fixes and improvements of some annoying behavior so that the app works better for everyone. This also includes some big improvements of the Brazilian, Japanese, and German translations.

    Last but not least, this update includes a fix for a bug that had been introduced by the recent Zotero 8 update. Some users were reporting that, after that update, Zettlr would stop suggesting citations, and that other parts of the citation pipeline would randomly fail. This update provides a fix to ensure that your citations should mostly work, even if the output from Zotero contains some minor problems.

    Do you enjoy Zettlr? Consider donating to help us pay for the development costs. You can donate monthly on Patreon or once via PayPal. Additionally, you can directly sponsor Hendrik Erz on GitHub or send a tip on Ko-Fi. Thanks for your support!

    Changelog

    GUI and Functionality

    • Feature: New utilities for working with native Pandoc Divs and spans (#6032):
      • Added a new setting to switch between native highlights (==mark==) and using spans for this ([mark]{.highlight}).
      • Added a new toolbar button to insert divs and spans.
      • Added new buttons to the formatting toolbar to insert underlined, strikethrough, and highlighted spans.
    • Feature: Blockquotes are now rendered with a vertical bar (#6122).
    • Feature: Users can now opt to display hidden files and folders ("dot-files") in the sidebar and/or filemanager in the settings (#6041).
    • Feature: Custom Pandoc divs are now pre-rendered depending on the corresponding setting (#6121). This allows you to preview any custom styling you have applied to them within the editor.
    • Feature: You can now move document tabs to the start or end of the tablist from the context menu (#6130).
    • Added an error message that explains to users that an import profile is needed if they attempt to import a supported file with no profile.
    • Updated pt-BR translation (#6154).
    • Updated ja-JP translation (#6198).
    • Updated de-DE translation.
    • Improved the tag recognition to allow for more varied Unicode characters in tags than previously, including umlauts, accents, or emojis (#6155).
    • Improved pilcrow styling when whitespace rendering is on (#6152).
    • Fixed the frontmatter linter never reporting any errors with the YAML (#6167).
    • Fixed an issue where images that spanned multiple lines could cause the editor to crash when image rendering was active.
    • Fixed the tab key not respecting the "Indent using tabs instead of spaces" setting. Additionally, pressing tab now always inserts spaces in YAML frontmatter blocks to maintain valid YAML syntax (#6168).
    • Fix: The formatting toolbar no longer grabs focus from the editor.
    • Fix: Added a configuration setting to allow restoring the pre-4.0 behavior of not showing the underlying Markdown syntax of pre-rendered elements when the cursor merely touches the element. If the setting "Show Markdown syntax when the cursor is adjacent or inside an element" is enabled (the default), the editor will show the Markdown syntax both when the cursor is within the element or if it is adjacent to it.
    • Fixed the table editor "Delete table" context menu item not working as intended (#6088).
    • Updated MathJax URL in various HTML-based templates to v4 (#6148). Note that Zettlr will not overwrite existing templates, so to benefit from this, you will have to factory-reset the affected templates.
    • Fixed a bug starting with the Zotero 8 update in Zettlr would no longer provide autocomplete for some users. The reason is that some of the items in the exported CSL JSON files would lack an ID property (that is, the citekey), while Zettlr assumed each item would have an ID.

    Under the Hood

    • Increased config retrieval speed in the renderers (#6140). This can speed up some UI interactions.

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.1.1...v4.2.0

  13. 4.1.1

    展開

    GitHub Release Homebrewへの登録

    Bug Fixes and Performance Improvements

    Did you always wonder what "bug fixes and performance improvements" in your app update notes referred to? Read our changelog below to see what this can entail! No new features this time, just some polishing.

    Important Note for Windows Users

    This is the last release published with the old code signing certificate. Going forward, the certificate will change. So please make sure to update to this release as soon as possible. Read more on our forum.

    Changelog

    GUI and Functionality

    • Fix a bug where the preferences window would allow arbitrary tab sizes. Now, tab sizes are bound between 2 and 10 (see #6131).
    • Fixed links not registering clicks when they are pre-rendered within table cells of the TableEditor (#4557).
    • Fix application of custom tag classes.
    • Fixed a bug that would not correctly apply the code class to segments of code in some circumstances (primarily when adding YAML front matters or comments).
    • Fix syntax highlighting in code blocks, frontmatters, etc. Now, Zettlr assigns more default-colors of the solarized code syntax theme. In addition, regular text is now more readable, especially in light mode.
    • Fixes and improvements to the toolbar styling; simplify CSS rules.
    • Made toolbar icons slightly larger.
    • Update ja-JP translation (#6132).
    • Fixed a bug that would not accept custom height constraints via Pandoc attributes for images if the maximum image height was set to 100% in the settings.
    • Fixed "Learn more" link on the citation page in the onboarding window (#6138).
    • Fixed an issue that would make the file search crash on Windows, if a workspace was located at a volume root (#6142).
    • Fixed an issue that would cause Mermaid graphs to still be pre-rendered in "raw" mode (#6141).
    • Fixed a bug that would cause code files (JSON/YAML/TeX) to be formatted weirdly if Zettlr opens with one of these files on startup, due to relevant CSS never being loaded in this case.
    • Improved PDF viewer interaction (#6153).

    Under the Hood

    • Update dependencies:
      • Electron: v40.0
      • Forge: 7.11.1
      • Builder: 26.5.0
    • The FSAL Cache now consistently utilizes asynchronous filesystem operations (#5994).
    • Refactor Zettelkasten link and tag parsing (#5997).
    • Number controls in forms now allow for providing min and max values.
    • Increased strictness of the @typescript-eslint/no-explicit-any rule from "off" (no checking) to "warn" to slowly start migrating away from any remaining any uses in the wild.
    • FSAL Improvements:
      • Removed a lot of dead code in the FSAL.
      • Moved the save functionality away from the FSAL*-submodules, and divided the responsibility between the DocumentsProvider and the FSAL module.

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.1.0...v4.1.1

  14. 4.1.0

    展開

    GitHub Release Homebrewへの登録

    Bug Fixes | Performance Improvements

    This is the first minor update for Zettlr 4.0. It comes with many fixes and small improvements, but also two new features and a change that you should know about. The two features are that you can now additionally collapse YAML frontmatters and Pandoc divs with the collapse-arrows left of the editor area, and Zettlr furthermore remembers which sections you have collapsed on a per-editor basis.

    The change pertains to a configuration update that will make downgrading from this version difficult, and which requires your attention. Read everything in the Changelog below.

    Changelog

    Read Before Updating

    In this version, we perform a long-planned configuration change that affects your loaded workspaces and files. Before installing this update, please take note of which workspaces and files you have open, in case they are being closed through this update. (No data will be actually deleted, but this helps you avoid having to search for the folders.)

    In addition, it is crucial to remember that once you update to this version, there is no turning back. If you decide to downgrade to a previous version, your files and workspaces will be closed, and you will have to re-open them afterwards.

    GUI and Functionality

    • Feature: You can now collapse YAML frontmatters and Pandoc divs (#6115).
    • Feature: Zettlr now remembers folded regions as long as the window remains open, even when you close a document (#6115).
    • Change: Due to a configuration change, downgrading Zettlr (which we generally discourage) after updating to this version will lead to your workspaces being closed.
    • Fixed XCode Command Line Tools setup dialog on macOS (#5428).
    • Fixed an issue that prevented opening Markdown files with tables that include Pandoc attribute strings when the TableEditor was enabled (#6110).
    • Fixed footnote tooltip rendering (#6107).
    • Fixed an issue preventing Zettlr from starting if the stats file contained errors (#6127).
    • Improved link target extraction logic when following links (#6098).
    • Performance improvements when following links (#6072).
    • Hide reference link labels when previewing Markdown links (#6097).
    • Improved performance on generating the preview-bibliography in the sidebar by collecting citation keys from the document only in the main process (#6068).
    • Improved math parsing to fix certain cases (#6030).
    • Relaxed filename restrictions for loading custom dictionaries (#6126).
    • Improved Pandoc div parsing (#6120).
    • Update de-DE translation (#6081).
    • Update ja-JP translation (#6086).

    Under the Hood

    • Moved the openPaths property. The openPaths property was a simple array holding all currently loaded root files and workspaces intermingled. This setting stems from the time when Zettlr could not load arbitrary files, and mixing files and folders is generally a bad practice. This property has now been moved into the new namespace app in the settings, and divided into openFiles and openWorkspaces. This will make a few future checks and features easier to implement, as the separation into files and folders is made explicit and not left to the OS. This will allow us to better clean up the property (personal note: I've seen a colleague's config file which was full of non-existing file paths, and I didn't like that). In rare situations, this change may close all your workspaces, in which case you would have to re-open them.
    • New utility function disambiguateFile that can be used to retrieve a time-based non-existing path that can be used for backup purposes.
    • Added a new environment variable, ZETTLR_DISABLE_UPDATE_CHECK. If that variable is detected during build, this will hard-disable update checks in the application. This can be used by package maintainers to ensure update checks from within the app are disabled, and Zettlr instead must be updated via the package manager. Please note that the build script will only check for the presence of the variable, not its contents. To ensure you are building with updates enabled, you need to ensure the variable is not set, for example by running unset ZETTLR_DISABLE_UPDATE_CHECK before commencing the build. For more information, please see issue #6075. When this environment variable is present during build, the resulting binary will exhibit this behavior:
      • The "Check for updates" menu item will not be present.
      • The "Updates" and "Beta releases" preferences will not be present. Instead, the updates-setting will be replaced by an informative message informing that updates have been disabled for the app.
      • The update check itself in the update provider will never run.
      • Zettlr will include an environment variable indicating whether updates are disabled (1) or enabled (0) that is visible within the debug panel.
    • Added a new environment variable, BUNDLE_PANDOC. If this variable is set to a value of 0, this will prevent the build script from downloading and bundling Pandoc during the build stage. This can be used by package maintainers to reduce the package size when there is a better way to provide Pandoc (e.g., by listing it as a dependency for Zettlr). This also means that the build environment does not require the dependencies that are specifically for the download script.
    • fix: The Pandoc Attribute parser does not throw an error on malformed attribute strings anymore, and instead just returns an empty record (#6110).

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.0.0...v4.1.0

  15. 4.0.0

    展開

    GitHub Release Homebrewへの登録

    It's time to celebrate — Zettlr 4.0 is here! This update includes an incredible amount of improvements, new features, and bug fixes. There's a lot of ground to cover, so let's quickly highlight the most important changes:

    • This update includes a fully rewritten table editor – no more data loss and no more frustration!
    • Brand-new image and PDF viewer: Now you can open images and PDF files directly within the app!
    • New citation parser — inserting, editing, and even cross-referencing has just become easier!
    • Improvements to the Zettelkasten- and Footnote workflows!
    • The FSAL has been rewritten from the ground up – no more missing files and changes in the app!
    • Edit your Pandoc LUA filters directly in the app – with the new Lua editor!

    Besides these "big" improvements, a lot of additional new features and improvements have made it into the app – too many to list here. Please carefully read the changelog below to see everything that has changed and read our accompanying blog post for this new release!

    Last but not least, a special thanks goes out to @benniekiss for their amazing help in providing high-quality PRs to make this release a reality!

    Changelog

    Full TableEditor Rewrite

    This release contains a full rewrite of the TableEditor. The old implementation of the TableEditor had many bugs and inconveniences that made working with Markdown tables barely less cumbersome than having to deal with raw Markdown tables. Users criticized volatile data handling and experienced frequent data loss. This is why we redesigned the TableEditor from the ground up. With this release, we are finally able to give the new experience to you.

    The most important improvement is that now data loss should be a thing of the past. The new TableEditor makes full use of the available features of the editor to keep the data as safe as possible. But we didn't want to stop there. Because the TableEditor hadn't received a face lift in years, we asked ourselves what else the TableEditor was missing.

    From a user perspective, we have kept the design of the TableEditor as close to the former UX as possible, while also fixing a few oddities. Specifically, the buttons of the TableEditor have been fully redesigned to be more minimalist. Also gone is the infamous "Save" button that was not able to help prevent data loss. The new TableEditor now features proper syntax highlighting so that you can more easily verify that you are authoring proper Markdown. In addition, the new TableEditor is now faster, more memory efficient, and it should be simpler to fill entire tables with data.

    Lastly, one big improvement of the new TableEditor is that you don't have to use it to be more efficient in authoring tables. Specifically, we decided to implement all functionality fully keyboard-oriented. This means that for any modification you may want to make there is now a shortcut. Adding and removing rows and columns; clearing data from rows, columns, or the entire table; aligning column text left, right, or center; swapping rows or columns; etc. Anything is now possible either with the new built-in context menu, or a quick keyboard shortcut.

    There is only one thing we stopped to support: grid tables. Given that their structure can be much more difficult to parse we wanted to err on the side of caution. However, some keyboard shortcuts such as navigating between cells will still work with grid tables. Since users will most of the time only edit simple tables, we believe this to be an acceptable compromise — while not completely ruling out supporting grid tables, especially since Pandoc has started heavily investing in an improvement of their grid table support.

    In any case, we hope that the new TableEditor will finally fix the issues you experienced over the past years — and we would like to apologize that it took us so long to fix all of these issues at once!

    Changes to the snippet $FILENAME variable

    In this update, we have implemented a change in which the $FILENAME variable no longer includes the filename extension. This means that, while $FILENAME has in the past resolved to my-file.md, it will now only include my-file.

    If you rely on the $FILENAME-variable in any of your snippets, please make sure to update it by adding the variable $EXTENSION behind it. In other words, everywhere you need only the filename without its extension, you can keep $FILENAME, but wherever you need both the file name and its file extension, please use $FILENAME$EXTENSION. (The latter variable includes the leading period of the extension, so do not write $FILENAME.$EXTENSION.)

    Image Viewer and PDF Viewer

    This update brings with it a great new feature for Zettlr: A built-in image viewer and PDF viewer. Once you have selected in the settings that you wish to open images or PDF files in Zettlr instead of the default behavior to open it externally, Zettlr will open them in editor panes just like the editors. You can rearrange them just like you can other files, and you have some options available to inspect the files.

    For images, the viewer offers various options to zoom and fit the images so that you can view every detail of them while having other files open side-by-side. In addition, the image viewer offers four background modes to accommodate transparency and difficult-to-view colors in the images better: transparent (the default), a black background, white background, and a translucent checkerboard background.

    The PDF viewer likewise allows you to preview PDF files using Chromium's built- in PDF viewer that you may already know if you have opened PDF files in Google Chrome or Edge. Due to restrictions in how this works, however, you will have to manually "enable" such a viewer before being able to scroll it by clicking into it. Whether an iframe is interactive is indicated by a small border around the iframe.

    Note that both image and PDF viewers are just that: viewers. As Zettlr is a text app, we do not plan on implementing any ways of editing images or PDF files. To annotate your PDF files, please continue using your existing workflow.

    New Citation Parser

    This release of Zettlr ships with a fully rewritten citation parser. We have decided to do so because the existing citation parser was very coarse. It would only detect and indicate entire citation nodes, but it could not distinguish between the various parts of citations (such as prefix, citekey, and suffix). In addition, there were quite many inefficiencies in how Zettlr would parse citations.

    The new citation parser aims at fixing these issues. It now mounts individual nodes into the document for all individual parts of a citation node. Specifically, it now detects formatting characters, the @-sign, the suppress- author-flag (a hyphen preceding the @-sign), prefix, suffix, and the locator individually. This not just makes styling individual citation parts possible, but also makes all processing within Zettlr more efficient and faster. Especially in documents with a lot of citations, you should be able to observe a performance improvement.

    Lastly, we took this opportunity to align the parser more with how Pandoc Citeproc processes citations. Most notably, this includes relaxing some requirements such as having to place commas after the citekey, and support for curly brackets, which allows you more flexibility in defining citekeys (e.g., @{AuthorYear}) and locators (e.g., {pp. 23-24, 66-69}),

    If you prefer to style Zettlr using Custom CSS, you can now style the individual parts of your citations, using the following CSS classes:

    • cm-citation: The entire citation node
    • cm-citation-mark: Formatting characters ({}[];) except the @-sign and the suppress-author-flag
    • cm-citation-prefix: The citation prefix
    • cm-citation-suppress-author-flag: The suppress-author-flag
    • cm-citation-at-sign: The @-sign in front of your citekey
    • cm-citation-citekey: The actual cite key (sans surrounding curly brackets)
    • cm-citation-locator: The locator after your citekey
    • cm-citation-suffix: The citation suffix

    Modified Zettelkasten Link Workflow

    With this update, we have updated the Zettelkasten link insertion workflow. This is due to the new capabilities of Zettlr to understand link labels. To do so, we have removed the previous settings "Link with filename only" and "When linking files, add the document name …". Instead, we have added two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible."

    The new workflow applies when you autocomplete a filename, and works as follows:

    1. If "Use the file ID" is enabled, Zettlr will use a file's ID, if the file has one, and fall back to the filename only where no ID is available. If it is disabled, Zettlr will always use the filename to generate internal Wikilinks.
    2. If "Always use the file title" is enabled, Zettlr will add the file's title (YAML frontmatter title; first heading level 1; filename) as the link label. If it is disabled, Zettlr will never add a link label automatically.

    Footnote Workflow Improvements

    This update improves the footnote handling workflow a lot. Until now, Zettlr was only able to properly insert new footnotes. However, the footnote deletion process still required you to manually delete both the footnote label and its accompanying reference.

    We have now implemented a few new functions that help you manage footnotes. First, when you delete text by pressing Backspace, and you reach a footnote label, Zettlr will now select the entire footnote label instead of deleting the closing bracket of the label. When you press Backspace a second time, it will remove the entire label at once. This gives you both a visual indication that you are about to delete a footnote, and make it easier (since it requires you to press Backspace only twice, instead of at least four times).

    Note that some functionality does not apply to footnote labels that contain text other than numbers.

    Rewritten FSAL

    A change that is more subtle to note is a full rewrite of the File System Abstraction Layer (FSAL). For more technical details, see the "Under the hood" section below. For you, what should change is that Zettlr should now feel snappier once it's booted up. We have cleaned up a lot of code under he hood which will make changes to any file appear much faster across the app. In addition, Zettlr should now have no issues detecting dozens of file changes in quick succession; something that has not worked perfectly in the past.

    Lua Filters Interface

    This version exposes the Lua filters directly to you. The assets manager now has a new tab that allows you to create, modify, and delete existing Lua filters that Zettlr provides to Pandoc during exports. You can use them to modify your exported files before Pandoc converts them to your export target. This is useful to change certain syntax elements which Pandoc does not natively support. One very common example for this is to add a Mermaid filter to Pandoc which automatically converts any code block with Mermaid syntax into a rendered diagram upon export.

    Any filter present here will be run during every export. We recommend that you design any filter toggle-able via a YAML frontmatter. To see how, refer to the built-in protected filters (see below). Zettlr does not guarantee the order in which these filters are run.

    Note that there will be two filters already present when you first open the tab. Those filters have been part of Zettlr for a very long time already. These are used to remove or change Zettelkasten links and tags in your files during export. These two filters are marked as "protected" like the built-in defaults files.

    A small bit of trivia: The preference settings that you can change which allow you to direct Zettlr to alter links and tags accordingly effectively only set a specific YAML frontmatter property in your file before it is exported. These filters check for this property and behave accordingly.

    Horizontal Rules are now Rendered

    Even though we do not recommend using the Custom CSS feature to modify the app's geometry, we know that quite a few of our users have been using the Custom CSS feature to make horizontal rules (***) appear as actual horizontal rules. This is a PSA that you should remove your custom styles when updating to this release. This version will start rendering horizontal rules as actual elements that you can target directly (it's a simple <hr> element), and this means that there is a chance that any Custom CSS that has mimicked a horizontal rule element may interfere, or even break the main editor.

    GUI and Functionality

    • Feature: Full TableEditor Rewrite. The new TableEditor keeps most functionality of the previous version, with the exception of more safeguards against data loss, and more ergonomic usage.
    • Feature: Image and PDF previews. Zettlr has now two dedicated viewers that allow users to open common image types and PDF files right from within the app for preview purposes (#5501).
    • Feature: Fully rewritten citation parser (#5902).
    • Feature: Full-text (aka. global) search runs can now be cancelled via a dedicated button. You can now also trigger a new search while another search is already running.
    • Feature: Individual global search results can now be copied to the clipboard (#2070).
    • Feature: The file manager can now show and display other file types as opposed to having those only in the sidebar. Images and PDF files can be opened directly in Zettlr, while other files will be opened using the system default application. You can use the appropriate section in the advanced settings to customize this. By default, none of the new file types will be displayed in the file manager (#5501).
    • Feature: Zettlr now provides a Liquid Glass icon for macOS 26.
    • Feature: A new option has been added to allow a simple switching between a raw Markdown syntax mode and a preview mode ("WYSIWYG"), both in the settings and in the statusbar. Clicking it will toggle Markdown files between a pure syntax view, and a mode in which those items which you have selected will be pre-rendered/previewed (#4514).
    • Feature: Zettlr now ships with a brand-new onboarding wizard that helps new users tweak some central settings immediately without having to scour the preferences.
    • Feature: macOS users with an Apple Silicon chip can now access Writing Tools from context menus.
    • Feature: Allow turning off the behavior of Zettlr to automatically open files upon successful export (#5609).
    • Feature: Added a simple setting that forcefully enables Pandoc's mark- extension when exporting from Markdown if that is not already enabled. This ensures that ==highlighted== spans are properly considered in any output format.
    • Feature: Improved the calendar view in the statistics window to better convey the numbers. It now features a gradient heatmap, only considers the numbers from the visible year, and logs the numbers to spread out the distribution across the new, ten activity levels.
    • Feature: Improved the statistics chart to better help you contextualize your writing flow. It now shows you your current word count for this week, and compares it to this and last years's averages.
    • Feature: The LanguageTool integration is now more performant and allows ignoring of certain rules (#5910). Whenever you ignore a rule, it shows up in the spellchecking preferences section alongside some additional info. From this section you can re-enable it by removing it from the list of ignored rules.
    • Feature: "Hide heading characters" now properly hides the characters instead of replacing them with another element, bringing Zettlr's renderer closer to a true WYSIWYG experience. The heading level is now indicated to the left side in its own gutter element.
    • Feature: You can now show line numbers in Markdown files via a new setting (#5917).
    • Feature: Zettlr has now improved support for reference-style links. This support extends to the link context-menu (which now supports handling links from both link and link reference), the tooltips (which accurately show link previews), rendering (which accounts for link labels), to any action (such as copying or removing a link) (#5142).
    • Feature: Zettlr now supports loading BibLaTeX libraries as well (#460).
    • Feature: Zettlr now correctly displays crossref-style citations (#248).
    • Feature: You can now collapse and un-collapse the files and workspace sections in the file manager. This can be helpful if you are working with both a lot of individual files and workspaces. Your choice is remembered (#5916).
    • Feature: Extended the scope and application of vibrancy on macOS.
    • Feature: Working with footnotes is now more convenient than ever. Zettlr now has an update listener that constantly scans the document for any rogue footnotes and references (which are missing their corresponding reference or footnote), and ensures that the numbering is always correct. This means that you can delete a footnote, and be certain that Zettlr will have removed the now-dangling reference, too. The same applies if you remove a reference that you no longer need. Lastly, deleting footnotes becomes more convenient. Now, if you delete characters and reach a footnote, Zettlr will first select the entire footnote to visually indicate that you are about to delete a footnote, then a second deletion will remove the entire footnote at once.
    • Feature: Fully hide both titlebar and toolbar if the setting "Hide toolbar in distraction free" is on, the user has activated distraction free and the window is in fullscreen. This means that, while Zettlr is not in fullscreen, there will always be either a titlebar or toolbar to move the window around, but in fullscreen, the editor can take up the entire window area (#3999).
    • Feature: Zettlr now exposes the Lua filter directory to you. Now you can add, remove, and modify both the built-in filters as well as your own, custom ones.
    • Feature: The exporting workflow is now smoother. The export button will be focused as soon as the export popover opens, meaning you can press Enter to start the export using the current settings.
    • Feature: Misspelling suggestions from the LanguageTool linter will now be treated equivalently to misspellings from the Hunspell linter, meaning you can add those to the user dictionary from the context menu, and apply any of the suggestions (if any) from there, too.
    • Feature: Zettlr now renders horizontal rules, too, when the preview rendering mode is on.
    • Feature: Zettlr can now properly parse and pre-render native Pandoc divs and spans. This includes the #refs-div as well as other elements, including underlines or small caps (#6031).
    • Change: Zettlr now monitors your documents and will automatically remove footnotes and references without the corresponding reference or footnote. If you have any documents in which you have un-referenced footnotes, or references that are currently unused, please make sure to change this before updating.
    • Change: Snippets: The $FILENAME variable now does not contain the file extension anymore. Users who also want the extension should update their snippets to $FILENAME$EXTENSION (#4191).
    • Change: The word and character counters in the statusbar now always show both counts.
    • Change: Removed the readability mode toggle from the toolbar. You can now trigger the readability mode via the status bar.
    • Change: Modified the Zettelkasten link insertion workflow. The previous settings "Link with filename only" and "When linking files, add the document name …" have been removed. Instead, there are two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible." The first new setting will always insert the detected file title (YAML frontmatter title; first heading level 1; filename) as the link label. If disabled, Zettlr will always create links without labels. The second setting controls whether Zettlr will always use filenames to link to files, or use IDs where available.
    • A11y: Zettlr now respects if you choose to reduce transparency in system settings and no longer add window vibrancy on macOS.
    • Snippets can now be nested (#5939).
    • You can now show an item in Finder/Explorer/file browser when right-clicking a document tab (#5914).
    • Fixed inline math not rendering when transforming Markdown to HTML (e.g., in footnotes).
    • The diagnostics info field in the statusbar now toggles the lint panel, instead of only opening the panel (#5847).
    • Fixed WebP images not rendering from relative paths (#5181).
    • Fixed the behavior when clicking widgets (citations, etc.) to accurately select only the widget's source text (#5682).
    • Update it-IT translations (#5831).
    • Update da-DA translations (#5868).
    • Update de-DE translations.
    • Added support for nix syntax highlighting (#5954).
    • Fixed incorrect cursor position after inserting IDs (#5846).
    • The toolbar word counter no longer wraps (#5774; #5881).
    • Fix context menu entry "Insert table" not working (#5835).
    • The keyboard shortcuts for snippets no longer require the field, thus preventing errors in EditorViews that map the corresponding shortcuts but don't have snippets installed.
    • The three-way-toggle for the file manager and global search does not wrap on Windows anymore (#5876).
    • The toolbar can now scroll left and right if the main window is too narrow (#5873; #5022).
    • Popovers (especially in the toolbar) will now properly close when clicking the associated toolbar button a second time (#5870).
    • Style improvements: linter panel dark mode (#5882); drop cursor (#5883); export, pomodoro, and tags popover (#5895); spacing in file manager tree view (#5891); global search (#5894).
    • Switched the icons for code and comments in the formatting toolbar (#5901).
    • The word counter now uses a proper segmenter that will make the word count more accurate for languages that do not use spaces to separate words (#5898).
    • Fixed the tutorial pages not correctly opening on first start.
    • Improved the macOS tray icon display.
    • Single clicks on the tray icon now activate the app (#4267).
    • Fixed footnote placing edge cases.
    • Due to updates in Apple's Human Interface Guidelines, the main process now no longer removes accelerators/keyboard shortcuts from the menus.
    • The recent documents provider now uses the OS API to return a list of recent documents. The provider is only retained for Linux at this point.
    • Improved performance for documents with many and/or large tables (#5903).
    • Fixes print functionality by completely abandoning the iframe approach and switching to the built-in Markdown-to-HTML parser.
    • Fixed the user dictionary not persisting to disk under certain conditions (#5922).
    • The toolbar update button now includes a clearly visible label indicating that an update is available, making it less likely to miss it.
    • Improved the styling and labelling of the additional attachment extensions setting in the advanced settings
    • The citation context menu now shows rendered citations instead of the raw citation keys, and utilizes macOS's sublabel feature to describe the context menu items.
    • Changed default config settings for new installations:
      • Dark mode is now preset to true if the OS reports that it uses dark colors.
      • Vibrancy on macOS is now set to true only if the user does not prefer reduced transparency.
    • Improved drag-and-drop behavior in the table of contents (#5871).
    • Improved the layout of the assets window (#5942).
    • Improved performance impact of references tab by only updating the bibliography on save, not on every keystroke (#5518).
    • Fixed images with brackets in the filename from not showing up (#3825).
    • Switched the window controls on Windows computers to the native controls. This will enable a set of additional OS-level functionality (such as hovering over the maximize-button to show a split-screen menu).
    • Fixed a bug that would not assign the correct footnote body class to footnote bodies. Now, footnotes will be rendered in a smaller font size and can be styled as a block.
    • Made the dark editor background less black, and increase contrast of the dark selection background for the Karl-Marx-Stadt theme.
    • Indentation preferences from the main settings now also apply to code editors where applicable.
    • The emphasis renderer now also hides formatting characters for footnote reference labels.
    • Images and links will now be detected more robustly (#5964).
    • Improved parsing footnotes (especially with multi-paragraph contents) (#5968).
    • Improved Markdown-to-HTML conversion (#5968).
    • Fixed image parsing for images with no ALT-text (#5963).
    • Horizontal scrolling in the "thin" file manager mode is no longer restricted to macOS, and also available on Linux and Windows.
    • Fixed the config provider never announcing to the renderers when the user added or removed a workspace/root file.
    • Fixed an issue where the sorting doesn't automatically re-apply (#5938; #5184).
    • Fixed an issue where not all file-links have been reported to the file autocomplete (#5920).
    • Fixed some issues with the file manager not properly reacting to changes in the loaded files (#5784; #5773; #5594).
    • Fixed an issue with deleting files outside of loaded workspaces (#5345).
    • Increased the dropzone size for moving files around and splitting/merging the various editor panes.
    • The Update provider does not show error boxes anymore if the update check failed due to a timeout (#5944).
    • Links in headers are now properly accounted for (#5983).
    • Headers level 1 will now be rendered to plain text for the purpose of displaying in various places (document tabs, file manager, etc.) (#5983).
    • Newly created defaults files will now be directly selected so that you can directly start editing them.
    • Fixed the selected directory not uncollapsing upon boot (#5156).
    • Fixed the smooth cursor animation, which stopped working in Zettlr 3.0 due to the switch from CodeMirror 5 to CodeMirror 6.
    • Zettlr won't attempt to check for updates anymore if the device is offline.
    • Improve performance by debouncing word counts (#5952).
    • Empty selectable lists now show a message visually indicating that the list is empty.
    • The snippets view now indicates better if there is no selected snippet.
    • When adding either snippets or import/export profiles, you can now enter the new name for these directly in the list instead of having to rename a random file.
    • Popovers now have an improved arrow color for better visibility.
    • Fix wrong display in relative directory paths during global search.
    • Replace misleading folder icons (folder and open folder) with new icon choices ("Home" and "Ban").
    • Fix a small bug that would throw an error if a user would specify the bibliography key in a profile as a single string, instead of a list.
    • Replacing tags works now case-insensitive (replacing #hello with #olleh now also replaces #HeLlO) (#6009).
    • Table header cells are now aligned left by default.
    • Increase icon sizes in file manager.
    • Fixed a bug that would inadvertently emit metadata for the PO-file if translating an empty string.
    • Re-implemented linking to folders from within documents (#6023).
    • Fix wrong suggested directories in the global search (#6065).
    • Fixed recent documents on Linux or Windows not opening (#4825).
    • Improve the visual line indentation logic to make it more robust (#6045).
    • Fixed an issue where symbolic links (ln -s) in your workspaces would cause severe crashes and prevent the app from loading (#5949).

    Under the Hood

    • Update Electron to version 39.2.6.
    • Update Pandoc to version 3.8.3.
    • Feature/Change: Full rewrite of the File System Abstraction Layer (FSAL). The rewrite has fully transformed the file abstraction logic to remove any tree structures, and instead mostly treat all loaded files as a single, long list of files and folders. Any type of tree structure is now purely visual and left where it needs to be (that is, the file tree and file list components that do show the files in a tree structure). In addition, we have implemented a set of improvements that should make everything work much smoother; in no particular order:
      • Remove any tree data structures pertaining to the loaded files. This includes the full removal of the WorkspacesProvider, whose job it essentially only was to maintain those tree structures. We now treat files as well as the change events emitted by the watchdog (to observe any remote changes) as a flat stream of events.
      • Rewrote the WorkspaceStore in the renderer to reflect this change, thus reducing the store's size by a lot. The store now only maintains a big list of loaded paths, as well as all descriptors in a Map structure.
      • The events from the file watchers are now emitted directly from the FSAL; there is no round trip through the WorkspaceProvider anymore.
      • Notably, DirDescriptor structures no longer contain any reference to children, since we do not read in any descriptors recursively anymore. Instead, consumers of DirDescriptors will now make a second roundtrip to fetch any direct descendants of a directory. Recursion is now implicit in the way the tree-like structures in the Vue components have been implemented.
      • Sorting has now been pushed to the edge in that the main process does no longer concern itself with sorting. That only happens right where it's needed from now on; that is: the file manager and the project properties. This makes sorting more reactive to configuration changes (since it now happens automagically due to Vue's reactivity instead of having to listen for relevant events and not forget to manually do it in main), and maintenance much easier.
      • Removed the root property on descriptors, since this is not dependent on the file system state and can easily be computed on demand.
    • Since CSS has become quite powerful, move all LESS-files to CSS.
    • Debounce the splash screen update frequency to at most 60fps to reduce the load on the IPC pipe while the screen is shown.
    • Added new curly rule to ESLint, enforcing curly brackets for block-statement declarations (if, for, while, etc.).
    • The enabled property of context menu items is now optional, and defaults to true.
    • EditorPanes will no longer load all documents at the same time, and instead reuse the existing MarkdownEditor component for a single document. This greatly reduces memory consumption, especially for very full tab bars, since only a single document will be actively rendered at any one time.
    • Moved the previously shared common types for the context menu in the renderer into the correct module to colocate the code. The shared types have been a remnant from a time before TypeScript supported the type keyword, and will subsequently be removed.
    • Moved the DirectedGraph class from the link provider to the stats window.
    • Switched back from electron-devtools-assembler to electron-devtools-installer; now the Vue.js devtools extension works again.
    • Style groups in form builder fields now support a label that will be rendered atop of these groups.
    • Zettlr now records and remembers the binary's build date. This information is shown in the debug info to help pinpoint from when a version is. In addition, this information is now used to disambiguate nightly versions so that both the FSAL cache will be cleared more regularly, and you get a visual indicator that you did update your nightly release.
    • The AST parser now properly detects task lists, and the Markdown-to-HTML converter appropriately handles them.
    • Improved list form controls. They now allow customizing the delete label and provide a custom "No records" message.
    • The rangeInSelection utility function now accepts an optional parameter that allows inclusion of adjacent selection ranges in calculating the result. This allows, e.g., renderers to detect whether a selection touches a node-to-be- rendered.
    • Added a loading spinner component that can be used to indicate that something is loading.
    • Context menu items now can have an action property, which is a simple function that will be called when the item is clicked. Those items do not have to have an ID (which is now an optional property). Items with IDs and without actions will still call the provided callback function.
    • The Markdown AST parser now also emits labelFrom and labelTo-properties for footnote references for easy access to the reference label.
    • If loading a window fails due to whatever reason, the corresponding error will now be shown to the user using an error dialog.
    • Aligned the math parser to the internal CodeMirror APIs (#5971).
    • Zettlr now declares nightly releases via the build flags instead of prerelease (e.g., 4.0.0-beta+nightly instead of 4.0.0-beta-nightly), since the previous way of declaring betas would make the internal semver check would declare 4.0.0-beta-nightly to be the same as 4.0.0-beta.1-nightly.
    • Zettlr now properly offers updating to a newer prerelease versions if users are on a nightly version (e.g., beta -> beta.1).
    • Log any error output from the Pandoc update script if the process failed (#5864).
    • The window manager now emits fullscreen state change events to the main windows. This allows Custom CSS and other parts of the state to subscribe to whether the body has the fullscreen class and perform changes.
    • The Assets Provider now ensures that defaults and snippets always have the correct filename extension as required.
    • Relocate the PopoverWrapper component to the common Vue directory for access in other windows.
    • Popovers now allow their parent element to specify placement priorities. Instead of always trying to place the popover first below, then right, then above the element, and never to the left, the owner of a Popover can now specify a set of priorities for placement. The PopoverWrapper will use the first priority that can be fulfilled while respecting space constraints. The default priorities reproduce the existing behavior (with the added ability to use the left side if necessary).
    • Text fields now reliably receive focus where appropriate.
    • The CodeEditor component now supports Lua syntax.

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v3.6.0...v4.0.0

  16. 4.0.0-beta.5

    展開

    GitHub Release

    This is likely the last beta before Zettlr can move to 4.0 stable. This means: We would appreciate many people testing this release, and reporting any remaining crucial bugs and problems so we can fix them. However, we do believe that it should now work relatively flawlessly.

    This release implements primarily fixes and a few remaining features that we wanted to include in this release:

    • Horizontal rules are now rendered (this is especially important to note for users who have implemented custom CSS solutions for rendering horizontal rules)
    • Misspellings from LanguageTool are now treated equivalently to dictionary misspellings, meaning you can add words to dictionary and handle them from the context menu
    • Zettlr now includes parsers for Pandoc divs and spans
    • Directories in the global search are now fixed
    • Recent documents should now open properly on Windows and Linux
    • Visual line indentation logic has been improved

    Changelog

    Full TableEditor Rewrite

    This release contains a full rewrite of the TableEditor. The old implementation of the TableEditor had many bugs and inconveniences that made working with Markdown tables barely less cumbersome than having to deal with raw Markdown tables. Users criticized volatile data handling and experienced frequent data loss. This is why we redesigned the TableEditor from the ground up. With this release, we are finally able to give the new experience to you.

    The most important improvement is that now data loss should be a thing of the past. The new TableEditor makes full use of the available features of the editor to keep the data as safe as possible. But we didn't want to stop there. Because the TableEditor hadn't received a face lift in years, we asked ourselves what else the TableEditor was missing.

    From a user perspective, we have kept the design of the TableEditor as close to the former UX as possible, while also fixing a few oddities. Specifically, the buttons of the TableEditor have been fully redesigned to be more minimalist. Also gone is the infamous "Save" button that was not able to help prevent data loss. The new TableEditor now features proper syntax highlighting so that you can more easily verify that you are authoring proper Markdown. In addition, the new TableEditor is now faster, more memory efficient, and it should be simpler to fill entire tables with data.

    Lastly, one big improvement of the new TableEditor is that you don't have to use it to be more efficient in authoring tables. Specifically, we decided to implement all functionality fully keyboard-oriented. This means that for any modification you may want to make there is now a shortcut. Adding and removing rows and columns; clearing data from rows, columns, or the entire table; aligning column text left, right, or center; swapping rows or columns; etc. Anything is now possible either with the new built-in context menu, or a quick keyboard shortcut.

    There is only one thing we stopped to support: grid tables. Given that their structure can be much more difficult to parse we wanted to err on the side of caution. However, some keyboard shortcuts such as navigating between cells will still work with grid tables. Since users will most of the time only edit simple tables, we believe this to be an acceptable compromise — while not completely ruling out supporting grid tables, especially since Pandoc has started heavily investing in an improvement of their grid table support.

    In any case, we hope that the new TableEditor will finally fix the issues you experienced over the past years — and we would like to apologize that it took us so long to fix all of these issues at once!

    Changes to the snippet $FILENAME variable

    In this update, we have implemented a change in which the $FILENAME variable no longer includes the filename extension. This means that, while $FILENAME has in the past resolved to my-file.md, it will now only include my-file.

    If you rely on the $FILENAME-variable in any of your snippets, please make sure to update it by adding the variable $EXTENSION behind it. In other words, everywhere you need only the filename without its extension, you can keep $FILENAME, but wherever you need both the file name and its file extension, please use $FILENAME$EXTENSION. (The latter variable includes the leading period of the extension, so do not write $FILENAME.$EXTENSION.)

    Image Viewer and PDF Viewer

    This update brings with it a great new feature for Zettlr: A built-in image viewer and PDF viewer. Once you have selected in the settings that you wish to open images or PDF files in Zettlr instead of the default behavior to open it externally, Zettlr will open them in editor panes just like the editors. You can rearrange them just like you can other files, and you have some options available to inspect the files.

    For images, the viewer offers various options to zoom and fit the images so that you can view every detail of them while having other files open side-by-side. In addition, the image viewer offers four background modes to accommodate transparency and difficult-to-view colors in the images better: transparent (the default), a black background, white background, and a translucent checkerboard background.

    The PDF viewer likewise allows you to preview PDF files using Chromium's built- in PDF viewer that you may already know if you have opened PDF files in Google Chrome or Edge. Due to restrictions in how this works, however, you will have to manually "enable" such a viewer before being able to scroll it by clicking into it. Whether an iframe is interactive is indicated by a small border around the iframe.

    Note that both image and PDF viewers are just that: viewers. As Zettlr is a text app, we do not plan on implementing any ways of editing images or PDF files. To annotate your PDF files, please continue using your existing workflow.

    New Citation Parser

    This release of Zettlr ships with a fully rewritten citation parser. We have decided to do so because the existing citation parser was very coarse. It would only detect and indicate entire citation nodes, but it could not distinguish between the various parts of citations (such as prefix, citekey, and suffix). In addition, there were quite many inefficiencies in how Zettlr would parse citations.

    The new citation parser aims at fixing these issues. It now mounts individual nodes into the document for all individual parts of a citation node. Specifically, it now detects formatting characters, the @-sign, the suppress- author-flag (a hyphen preceding the @-sign), prefix, suffix, and the locator individually. This not just makes styling individual citation parts possible, but also makes all processing within Zettlr more efficient and faster. Especially in documents with a lot of citations, you should be able to observe a performance improvement.

    Lastly, we took this opportunity to align the parser more with how Pandoc Citeproc processes citations. Most notably, this includes relaxing some requirements such as having to place commas after the citekey, and support for curly brackets, which allows you more flexibility in defining citekeys (e.g., @{AuthorYear}) and locators (e.g., {pp. 23-24, 66-69}),

    If you prefer to style Zettlr using Custom CSS, you can now style the individual parts of your citations, using the following CSS classes:

    • cm-citation: The entire citation node
    • cm-citation-mark: Formatting characters ({}[];) except the @-sign and the suppress-author-flag
    • cm-citation-prefix: The citation prefix
    • cm-citation-suppress-author-flag: The suppress-author-flag
    • cm-citation-at-sign: The @-sign in front of your citekey
    • cm-citation-citekey: The actual cite key (sans surrounding curly brackets)
    • cm-citation-locator: The locator after your citekey
    • cm-citation-suffix: The citation suffix

    Modified Zettelkasten Link Workflow

    With this update, we have updated the Zettelkasten link insertion workflow. This is due to the new capabilities of Zettlr to understand link labels. To do so, we have removed the previous settings "Link with filename only" and "When linking files, add the document name …". Instead, we have added two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible."

    The new workflow applies when you autocomplete a filename, and works as follows:

    1. If "Use the file ID" is enabled, Zettlr will use a file's ID, if the file has one, and fall back to the filename only where no ID is available. If it is disabled, Zettlr will always use the filename to generate internal Wikilinks.
    2. If "Always use the file title" is enabled, Zettlr will add the file's title (YAML frontmatter title; first heading level 1; filename) as the link label. If it is disabled, Zettlr will never add a link label automatically.

    Footnote Workflow Improvements

    This update improves the footnote handling workflow a lot. Until now, Zettlr was only able to properly insert new footnotes. However, the footnote deletion process still required you to manually delete both the footnote label and its accompanying reference.

    We have now implemented a few new functions that help you manage footnotes. First, when you delete text by pressing Backspace, and you reach a footnote label, Zettlr will now select the entire footnote label instead of deleting the closing bracket of the label. When you press Backspace a second time, it will remove the entire label at once. This gives you both a visual indication that you are about to delete a footnote, and make it easier (since it requires you to press Backspace only twice, instead of at least four times).

    Note that some functionality does not apply to footnote labels that contain text other than numbers.

    Rewritten FSAL

    A change that is more subtle to note is a full rewrite of the File System Abstraction Layer (FSAL). For more technical details, see the "Under the hood" section below. For you, what should change is that Zettlr should now feel snappier once it's booted up. We have cleaned up a lot of code under he hood which will make changes to any file appear much faster across the app. In addition, Zettlr should now have no issues detecting dozens of file changes in quick succession; something that has not worked perfectly in the past.

    Lua Filters Interface

    This version exposes the Lua filters directly to you. The assets manager now has a new tab that allows you to create, modify, and delete existing Lua filters that Zettlr provides to Pandoc during exports. You can use them to modify your exported files before Pandoc converts them to your export target. This is useful to change certain syntax elements which Pandoc does not natively support. One very common example for this is to add a Mermaid filter to Pandoc which automatically converts any code block with Mermaid syntax into a rendered diagram upon export.

    Any filter present here will be run during every export. We recommend that you design any filter toggle-able via a YAML frontmatter. To see how, refer to the built-in protected filters (see below). Zettlr does not guarantee the order in which these filters are run.

    Note that there will be two filters already present when you first open the tab. Those filters have been part of Zettlr for a very long time already. These are used to remove or change Zettelkasten links and tags in your files during export. These two filters are marked as "protected" like the built-in defaults files.

    A small bit of trivia: The preference settings that you can change which allow you to direct Zettlr to alter links and tags accordingly effectively only set a specific YAML frontmatter property in your file before it is exported. These filters check for this property and behave accordingly.

    Horizontal Rules are now Rendered

    Even though we do not recommend using the Custom CSS feature to modify the app's geometry, we know that quite a few of our users have been using the Custom CSS feature to make horizontal rules (***) appear as actual horizontal rules. This is a PSA that you should remove your custom styles when updating to this release. This version will start rendering horizontal rules as actual elements that you can target directly (it's a simple <hr> element), and this means that there is a chance that any Custom CSS that has mimicked a horizontal rule element may interfere, or even break the main editor.

    GUI and Functionality

    • Feature: Full TableEditor Rewrite. The new TableEditor keeps most functionality of the previous version, with the exception of more safeguards against data loss, and more ergonomic usage.
    • Feature: Image and PDF previews. Zettlr has now two dedicated viewers that allow users to open common image types and PDF files right from within the app for preview purposes (#5501).
    • Feature: Fully rewritten citation parser (#5902).
    • Feature: Full-text (aka. global) search runs can now be cancelled via a dedicated button. You can now also trigger a new search while another search is already running.
    • Feature: Individual global search results can now be copied to the clipboard (#2070).
    • Feature: The file manager can now show and display other file types as opposed to having those only in the sidebar. Images and PDF files can be opened directly in Zettlr, while other files will be opened using the system default application. You can use the appropriate section in the advanced settings to customize this. By default, none of the new file types will be displayed in the file manager (#5501).
    • Feature: Zettlr now provides a Liquid Glass icon for macOS 26.
    • Feature: A new option has been added to allow a simple switching between a raw Markdown syntax mode and a preview mode ("WYSIWYG"), both in the settings and in the statusbar. Clicking it will toggle Markdown files between a pure syntax view, and a mode in which those items which you have selected will be pre-rendered/previewed (#4514).
    • Feature: Zettlr now ships with a brand-new onboarding wizard that helps new users tweak some central settings immediately without having to scour the preferences.
    • Feature: macOS users with an Apple Silicon chip can now access Writing Tools from context menus.
    • Feature: Allow turning off the behavior of Zettlr to automatically open files upon successful export (#5609).
    • Feature: Added a simple setting that forcefully enables Pandoc's mark- extension when exporting from Markdown if that is not already enabled. This ensures that ==highlighted== spans are properly considered in any output format.
    • Feature: Improved the calendar view in the statistics window to better convey the numbers. It now features a gradient heatmap, only considers the numbers from the visible year, and logs the numbers to spread out the distribution across the new, ten activity levels.
    • Feature: Improved the statistics chart to better help you contextualize your writing flow. It now shows you your current word count for this week, and compares it to this and last years's averages.
    • Feature: The LanguageTool integration is now more performant and allows ignoring of certain rules (#5910). Whenever you ignore a rule, it shows up in the spellchecking preferences section alongside some additional info. From this section you can re-enable it by removing it from the list of ignored rules.
    • Feature: "Hide heading characters" now properly hides the characters instead of replacing them with another element, bringing Zettlr's renderer closer to a true WYSIWYG experience. The heading level is now indicated to the left side in its own gutter element.
    • Feature: You can now show line numbers in Markdown files via a new setting (#5917).
    • Feature: Zettlr has now improved support for reference-style links. This support extends to the link context-menu (which now supports handling links from both link and link reference), the tooltips (which accurately show link previews), rendering (which accounts for link labels), to any action (such as copying or removing a link) (#5142).
    • Feature: Zettlr now supports loading BibLaTeX libraries as well (#460).
    • Feature: Zettlr now correctly displays crossref-style citations (#248).
    • Feature: You can now collapse and un-collapse the files and workspace sections in the file manager. This can be helpful if you are working with both a lot of individual files and workspaces. Your choice is remembered (#5916).
    • Feature: Extended the scope and application of vibrancy on macOS.
    • Feature: Working with footnotes is now more convenient than ever. Zettlr now has an update listener that constantly scans the document for any rogue footnotes and references (which are missing their corresponding reference or footnote), and ensures that the numbering is always correct. This means that you can delete a footnote, and be certain that Zettlr will have removed the now-dangling reference, too. The same applies if you remove a reference that you no longer need. Lastly, deleting footnotes becomes more convenient. Now, if you delete characters and reach a footnote, Zettlr will first select the entire footnote to visually indicate that you are about to delete a footnote, then a second deletion will remove the entire footnote at once.
    • Feature: Fully hide both titlebar and toolbar if the setting "Hide toolbar in distraction free" is on, the user has activated distraction free and the window is in fullscreen. This means that, while Zettlr is not in fullscreen, there will always be either a titlebar or toolbar to move the window around, but in fullscreen, the editor can take up the entire window area (#3999).
    • Feature: Zettlr now exposes the Lua filter directory to you. Now you can add, remove, and modify both the built-in filters as well as your own, custom ones.
    • Feature: The exporting workflow is now smoother. The export button will be focused as soon as the export popover opens, meaning you can press Enter to start the export using the current settings.
    • Feature: Misspelling suggestions from the LanguageTool linter will now be treated equivalently to misspellings from the Hunspell linter, meaning you can add those to the user dictionary from the context menu, and apply any of the suggestions (if any) from there, too.
    • Feature: Zettlr now renders horizontal rules, too, when the preview rendering mode is on.
    • Feature: Zettlr can now properly parse and pre-render native Pandoc divs and spans. This includes the #refs-div as well as other elements, including underlines or small caps (#6031).
    • Change: Zettlr now monitors your documents and will automatically remove footnotes and references without the corresponding reference or footnote. If you have any documents in which you have un-referenced footnotes, or references that are currently unused, please make sure to change this before updating.
    • Change: Snippets: The $FILENAME variable now does not contain the file extension anymore. Users who also want the extension should update their snippets to $FILENAME$EXTENSION (#4191).
    • Change: The word and character counters in the statusbar now always show both counts.
    • Change: Removed the readability mode toggle from the toolbar. You can now trigger the readability mode via the status bar.
    • Change: Modified the Zettelkasten link insertion workflow. The previous settings "Link with filename only" and "When linking files, add the document name …" have been removed. Instead, there are two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible." The first new setting will always insert the detected file title (YAML frontmatter title; first heading level 1; filename) as the link label. If disabled, Zettlr will always create links without labels. The second setting controls whether Zettlr will always use filenames to link to files, or use IDs where available.
    • A11y: Zettlr now respects if you choose to reduce transparency in system settings and no longer add window vibrancy on macOS.
    • Snippets can now be nested (#5939).
    • You can now show an item in Finder/Explorer/file browser when right-clicking a document tab (#5914).
    • Fixed inline math not rendering when transforming Markdown to HTML (e.g., in footnotes).
    • The diagnostics info field in the statusbar now toggles the lint panel, instead of only opening the panel (#5847).
    • Fixed WebP images not rendering from relative paths (#5181).
    • Fixed the behavior when clicking widgets (citations, etc.) to accurately select only the widget's source text (#5682).
    • Update it-IT translations (#5831).
    • Update da-DA translations (#5868).
    • Update de-DE translations.
    • Added support for nix syntax highlighting (#5954).
    • Fixed incorrect cursor position after inserting IDs (#5846).
    • The toolbar word counter no longer wraps (#5774; #5881).
    • Fix context menu entry "Insert table" not working (#5835).
    • The keyboard shortcuts for snippets no longer require the field, thus preventing errors in EditorViews that map the corresponding shortcuts but don't have snippets installed.
    • The three-way-toggle for the file manager and global search does not wrap on Windows anymore (#5876).
    • The toolbar can now scroll left and right if the main window is too narrow (#5873; #5022).
    • Popovers (especially in the toolbar) will now properly close when clicking the associated toolbar button a second time (#5870).
    • Style improvements: linter panel dark mode (#5882); drop cursor (#5883); export, pomodoro, and tags popover (#5895); spacing in file manager tree view (#5891); global search (#5894).
    • Switched the icons for code and comments in the formatting toolbar (#5901).
    • The word counter now uses a proper segmenter that will make the word count more accurate for languages that do not use spaces to separate words (#5898).
    • Fixed the tutorial pages not correctly opening on first start.
    • Improved the macOS tray icon display.
    • Single clicks on the tray icon now activate the app (#4267).
    • Fixed footnote placing edge cases.
    • Due to updates in Apple's Human Interface Guidelines, the main process now no longer removes accelerators/keyboard shortcuts from the menus.
    • The recent documents provider now uses the OS API to return a list of recent documents. The provider is only retained for Linux at this point.
    • Improved performance for documents with many and/or large tables (#5903).
    • Fixes print functionality by completely abandoning the iframe approach and switching to the built-in Markdown-to-HTML parser.
    • Fixed the user dictionary not persisting to disk under certain conditions (#5922).
    • The toolbar update button now includes a clearly visible label indicating that an update is available, making it less likely to miss it.
    • Improved the styling and labelling of the additional attachment extensions setting in the advanced settings
    • The citation context menu now shows rendered citations instead of the raw citation keys, and utilizes macOS's sublabel feature to describe the context menu items.
    • Changed default config settings for new installations:
      • Dark mode is now preset to true if the OS reports that it uses dark colors.
      • Vibrancy on macOS is now set to true only if the user does not prefer reduced transparency.
    • Improved drag-and-drop behavior in the table of contents (#5871).
    • Improved the layout of the assets window (#5942).
    • Improved performance impact of references tab by only updating the bibliography on save, not on every keystroke (#5518).
    • Fixed images with brackets in the filename from not showing up (#3825).
    • Switched the window controls on Windows computers to the native controls. This will enable a set of additional OS-level functionality (such as hovering over the maximize-button to show a split-screen menu).
    • Fixed a bug that would not assign the correct footnote body class to footnote bodies. Now, footnotes will be rendered in a smaller font size and can be styled as a block.
    • Made the dark editor background less black, and increase contrast of the dark selection background for the Karl-Marx-Stadt theme.
    • Indentation preferences from the main settings now also apply to code editors where applicable.
    • The emphasis renderer now also hides formatting characters for footnote reference labels.
    • Images and links will now be detected more robustly (#5964).
    • Improved parsing footnotes (especially with multi-paragraph contents) (#5968).
    • Improved Markdown-to-HTML conversion (#5968).
    • Fixed image parsing for images with no ALT-text (#5963).
    • Horizontal scrolling in the "thin" file manager mode is no longer restricted to macOS, and also available on Linux and Windows.
    • Fixed the config provider never announcing to the renderers when the user added or removed a workspace/root file.
    • Fixed an issue where the sorting doesn't automatically re-apply (#5938; #5184).
    • Fixed an issue where not all file-links have been reported to the file autocomplete (#5920).
    • Fixed some issues with the file manager not properly reacting to changes in the loaded files (#5784; #5773; #5594).
    • Fixed an issue with deleting files outside of loaded workspaces (#5345).
    • Increased the dropzone size for moving files around and splitting/merging the various editor panes.
    • The Update provider does not show error boxes anymore if the update check failed due to a timeout (#5944).
    • Links in headers are now properly accounted for (#5983).
    • Headers level 1 will now be rendered to plain text for the purpose of displaying in various places (document tabs, file manager, etc.) (#5983).
    • Newly created defaults files will now be directly selected so that you can directly start editing them.
    • Fixed the selected directory not uncollapsing upon boot (#5156).
    • Fixed the smooth cursor animation, which stopped working in Zettlr 3.0 due to the switch from CodeMirror 5 to CodeMirror 6.
    • Zettlr won't attempt to check for updates anymore if the device is offline.
    • Improve performance by debouncing word counts (#5952).
    • Empty selectable lists now show a message visually indicating that the list is empty.
    • The snippets view now indicates better if there is no selected snippet.
    • When adding either snippets or import/export profiles, you can now enter the new name for these directly in the list instead of having to rename a random file.
    • Popovers now have an improved arrow color for better visibility.
    • Fix wrong display in relative directory paths during global search.
    • Replace misleading folder icons (folder and open folder) with new icon choices ("Home" and "Ban").
    • Fix a small bug that would throw an error if a user would specify the bibliography key in a profile as a single string, instead of a list.
    • Replacing tags works now case-insensitive (replacing #hello with #olleh now also replaces #HeLlO) (#6009).
    • Table header cells are now aligned left by default.
    • Increase icon sizes in file manager.
    • Fixed a bug that would inadvertently emit metadata for the PO-file if translating an empty string.
    • Re-implemented linking to folders from within documents (#6023).
    • Fix wrong suggested directories in the global search (#6065).
    • Fixed recent documents on Linux or Windows not opening (#4825).
    • Improve the visual line indentation logic to make it more robust (#6045).

    Under the Hood

    • Update Electron to version 39.2.6.
    • Update Pandoc to version 3.8.3.
    • Feature/Change: Full rewrite of the File System Abstraction Layer (FSAL). The rewrite has fully transformed the file abstraction logic to remove any tree structures, and instead mostly treat all loaded files as a single, long list of files and folders. Any type of tree structure is now purely visual and left where it needs to be (that is, the file tree and file list components that do show the files in a tree structure). In addition, we have implemented a set of improvements that should make everything work much smoother; in no particular order:
      • Remove any tree data structures pertaining to the loaded files. This includes the full removal of the WorkspacesProvider, whose job it essentially only was to maintain those tree structures. We now treat files as well as the change events emitted by the watchdog (to observe any remote changes) as a flat stream of events.
      • Rewrote the WorkspaceStore in the renderer to reflect this change, thus reducing the store's size by a lot. The store now only maintains a big list of loaded paths, as well as all descriptors in a Map structure.
      • The events from the file watchers are now emitted directly from the FSAL; there is no round trip through the WorkspaceProvider anymore.
      • Notably, DirDescriptor structures no longer contain any reference to children, since we do not read in any descriptors recursively anymore. Instead, consumers of DirDescriptors will now make a second roundtrip to fetch any direct descendants of a directory. Recursion is now implicit in the way the tree-like structures in the Vue components have been implemented.
      • Sorting has now been pushed to the edge in that the main process does no longer concern itself with sorting. That only happens right where it's needed from now on; that is: the file manager and the project properties. This makes sorting more reactive to configuration changes (since it now happens automagically due to Vue's reactivity instead of having to listen for relevant events and not forget to manually do it in main), and maintenance much easier.
      • Removed the root property on descriptors, since this is not dependent on the file system state and can easily be computed on demand.
    • Since CSS has become quite powerful, move all LESS-files to CSS.
    • Debounce the splash screen update frequency to at most 60fps to reduce the load on the IPC pipe while the screen is shown.
    • Added new curly rule to ESLint, enforcing curly brackets for block-statement declarations (if, for, while, etc.).
    • The enabled property of context menu items is now optional, and defaults to true.
    • EditorPanes will no longer load all documents at the same time, and instead reuse the existing MarkdownEditor component for a single document. This greatly reduces memory consumption, especially for very full tab bars, since only a single document will be actively rendered at any one time.
    • Moved the previously shared common types for the context menu in the renderer into the correct module to colocate the code. The shared types have been a remnant from a time before TypeScript supported the type keyword, and will subsequently be removed.
    • Moved the DirectedGraph class from the link provider to the stats window.
    • Switched back from electron-devtools-assembler to electron-devtools-installer; now the Vue.js devtools extension works again.
    • Style groups in form builder fields now support a label that will be rendered atop of these groups.
    • Zettlr now records and remembers the binary's build date. This information is shown in the debug info to help pinpoint from when a version is. In addition, this information is now used to disambiguate nightly versions so that both the FSAL cache will be cleared more regularly, and you get a visual indicator that you did update your nightly release.
    • The AST parser now properly detects task lists, and the Markdown-to-HTML converter appropriately handles them.
    • Improved list form controls. They now allow customizing the delete label and provide a custom "No records" message.
    • The rangeInSelection utility function now accepts an optional parameter that allows inclusion of adjacent selection ranges in calculating the result. This allows, e.g., renderers to detect whether a selection touches a node-to-be- rendered.
    • Added a loading spinner component that can be used to indicate that something is loading.
    • Context menu items now can have an action property, which is a simple function that will be called when the item is clicked. Those items do not have to have an ID (which is now an optional property). Items with IDs and without actions will still call the provided callback function.
    • The Markdown AST parser now also emits labelFrom and labelTo-properties for footnote references for easy access to the reference label.
    • If loading a window fails due to whatever reason, the corresponding error will now be shown to the user using an error dialog.
    • Aligned the math parser to the internal CodeMirror APIs (#5971).
    • Zettlr now declares nightly releases via the build flags instead of prerelease (e.g., 4.0.0-beta+nightly instead of 4.0.0-beta-nightly), since the previous way of declaring betas would make the internal semver check would declare 4.0.0-beta-nightly to be the same as 4.0.0-beta.1-nightly.
    • Zettlr now properly offers updating to a newer prerelease versions if users are on a nightly version (e.g., beta -> beta.1).
    • Log any error output from the Pandoc update script if the process failed (#5864).
    • The window manager now emits fullscreen state change events to the main windows. This allows Custom CSS and other parts of the state to subscribe to whether the body has the fullscreen class and perform changes.
    • The Assets Provider now ensures that defaults and snippets always have the correct filename extension as required.
    • Relocate the PopoverWrapper component to the common Vue directory for access in other windows.
    • Popovers now allow their parent element to specify placement priorities. Instead of always trying to place the popover first below, then right, then above the element, and never to the left, the owner of a Popover can now specify a set of priorities for placement. The PopoverWrapper will use the first priority that can be fulfilled while respecting space constraints. The default priorities reproduce the existing behavior (with the added ability to use the left side if necessary).
    • Text fields now reliably receive focus where appropriate.
    • The CodeEditor component now supports Lua syntax.

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.0.0-beta.4...v4.0.0-beta.5

  17. 4.0.0-beta.4

    展開

    GitHub Release

    This fifth beta again includes a few improvements. These are mostly some cleanup, code refactoring, and a few additional fixes. Nothing major has changed. As always, see the changelog below for full details.

    Note: We're currently en route to preparing a final and stable release of Zettlr 4.0, so please report any bugs that you deem critical as soon as possible. This might be the last beta release before 4.0 stable.

    Changelog

    Full TableEditor Rewrite

    This release contains a full rewrite of the TableEditor. The old implementation of the TableEditor had many bugs and inconveniences that made working with Markdown tables barely less cumbersome than having to deal with raw Markdown tables. Users criticized volatile data handling and experienced frequent data loss. This is why we redesigned the TableEditor from the ground up. With this release, we are finally able to give the new experience to you.

    The most important improvement is that now data loss should be a thing of the past. The new TableEditor makes full use of the available features of the editor to keep the data as safe as possible. But we didn't want to stop there. Because the TableEditor hadn't received a face lift in years, we asked ourselves what else the TableEditor was missing.

    From a user perspective, we have kept the design of the TableEditor as close to the former UX as possible, while also fixing a few oddities. Specifically, the buttons of the TableEditor have been fully redesigned to be more minimalist. Also gone is the infamous "Save" button that was not able to help prevent data loss. The new TableEditor now features proper syntax highlighting so that you can more easily verify that you are authoring proper Markdown. In addition, the new TableEditor is now faster, more memory efficient, and it should be simpler to fill entire tables with data.

    Lastly, one big improvement of the new TableEditor is that you don't have to use it to be more efficient in authoring tables. Specifically, we decided to implement all functionality fully keyboard-oriented. This means that for any modification you may want to make there is now a shortcut. Adding and removing rows and columns; clearing data from rows, columns, or the entire table; aligning column text left, right, or center; swapping rows or columns; etc. Anything is now possible either with the new built-in context menu, or a quick keyboard shortcut.

    There is only one thing we stopped to support: grid tables. Given that their structure can be much more difficult to parse we wanted to err on the side of caution. However, some keyboard shortcuts such as navigating between cells will still work with grid tables. Since users will most of the time only edit simple tables, we believe this to be an acceptable compromise — while not completely ruling out supporting grid tables, especially since Pandoc has started heavily investing in an improvement of their grid table support.

    In any case, we hope that the new TableEditor will finally fix the issues you experienced over the past years — and we would like to apologize that it took us so long to fix all of these issues at once!

    Changes to the snippet $FILENAME variable

    In this update, we have implemented a change in which the $FILENAME variable no longer includes the filename extension. This means that, while $FILENAME has in the past resolved to my-file.md, it will now only include my-file.

    If you rely on the $FILENAME-variable in any of your snippets, please make sure to update it by adding the variable $EXTENSION behind it. In other words, everywhere you need only the filename without its extension, you can keep $FILENAME, but wherever you need both the file name and its file extension, please use $FILENAME$EXTENSION. (The latter variable includes the leading period of the extension, so do not write $FILENAME.$EXTENSION.)

    Image Viewer and PDF Viewer

    This update brings with it a great new feature for Zettlr: A built-in image viewer and PDF viewer. Once you have selected in the settings that you wish to open images or PDF files in Zettlr instead of the default behavior to open it externally, Zettlr will open them in editor panes just like the editors. You can rearrange them just like you can other files, and you have some options available to inspect the files.

    For images, the viewer offers various options to zoom and fit the images so that you can view every detail of them while having other files open side-by-side. In addition, the image viewer offers four background modes to accommodate transparency and difficult-to-view colors in the images better: transparent (the default), a black background, white background, and a translucent checkerboard background.

    The PDF viewer likewise allows you to preview PDF files using Chromium's built- in PDF viewer that you may already know if you have opened PDF files in Google Chrome or Edge. Due to restrictions in how this works, however, you will have to manually "enable" such a viewer before being able to scroll it by clicking into it. Whether an iframe is interactive is indicated by a small border around the iframe.

    Note that both image and PDF viewers are just that: viewers. As Zettlr is a text app, we do not plan on implementing any ways of editing images or PDF files. To annotate your PDF files, please continue using your existing workflow.

    New Citation Parser

    This release of Zettlr ships with a fully rewritten citation parser. We have decided to do so because the existing citation parser was very coarse. It would only detect and indicate entire citation nodes, but it could not distinguish between the various parts of citations (such as prefix, citekey, and suffix). In addition, there were quite many inefficiencies in how Zettlr would parse citations.

    The new citation parser aims at fixing these issues. It now mounts individual nodes into the document for all individual parts of a citation node. Specifically, it now detects formatting characters, the @-sign, the suppress- author-flag (a hyphen preceding the @-sign), prefix, suffix, and the locator individually. This not just makes styling individual citation parts possible, but also makes all processing within Zettlr more efficient and faster. Especially in documents with a lot of citations, you should be able to observe a performance improvement.

    Lastly, we took this opportunity to align the parser more with how Pandoc Citeproc processes citations. Most notably, this includes relaxing some requirements such as having to place commas after the citekey, and support for curly brackets, which allows you more flexibility in defining citekeys (e.g., @{AuthorYear}) and locators (e.g., {pp. 23-24, 66-69}),

    If you prefer to style Zettlr using Custom CSS, you can now style the individual parts of your citations, using the following CSS classes:

    • cm-citation: The entire citation node
    • cm-citation-mark: Formatting characters ({}[];) except the @-sign and the suppress-author-flag
    • cm-citation-prefix: The citation prefix
    • cm-citation-suppress-author-flag: The suppress-author-flag
    • cm-citation-at-sign: The @-sign in front of your citekey
    • cm-citation-citekey: The actual cite key (sans surrounding curly brackets)
    • cm-citation-locator: The locator after your citekey
    • cm-citation-suffix: The citation suffix

    Modified Zettelkasten Link Workflow

    With this update, we have updated the Zettelkasten link insertion workflow. This is due to the new capabilities of Zettlr to understand link labels. To do so, we have removed the previous settings "Link with filename only" and "When linking files, add the document name …". Instead, we have added two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible."

    The new workflow applies when you autocomplete a filename, and works as follows:

    1. If "Use the file ID" is enabled, Zettlr will use a file's ID, if the file has one, and fall back to the filename only where no ID is available. If it is disabled, Zettlr will always use the filename to generate internal Wikilinks.
    2. If "Always use the file title" is enabled, Zettlr will add the file's title (YAML frontmatter title; first heading level 1; filename) as the link label. If it is disabled, Zettlr will never add a link label automatically.

    Footnote Workflow Improvements

    This update improves the footnote handling workflow a lot. Until now, Zettlr was only able to properly insert new footnotes. However, the footnote deletion process still required you to manually delete both the footnote label and its accompanying reference.

    We have now implemented a few new functions that help you manage footnotes. First, when you delete text by pressing Backspace, and you reach a footnote label, Zettlr will now select the entire footnote label instead of deleting the closing bracket of the label. When you press Backspace a second time, it will remove the entire label at once. This gives you both a visual indication that you are about to delete a footnote, and make it easier (since it requires you to press Backspace only twice, instead of at least four times).

    Note that some functionality does not apply to footnote labels that contain text other than numbers.

    Rewritten FSAL

    A change that is more subtle to note is a full rewrite of the File System Abstraction Layer (FSAL). For more technical details, see the "Under the hood" section below. For you, what should change is that Zettlr should now feel snappier once it's booted up. We have cleaned up a lot of code under he hood which will make changes to any file appear much faster across the app. In addition, Zettlr should now have no issues detecting dozens of file changes in quick succession; something that has not worked perfectly in the past.

    Lua Filters Interface

    This version exposes the Lua filters directly to you. The assets manager now has a new tab that allows you to create, modify, and delete existing Lua filters that Zettlr provides to Pandoc during exports. You can use them to modify your exported files before Pandoc converts them to your export target. This is useful to change certain syntax elements which Pandoc does not natively support. One very common example for this is to add a Mermaid filter to Pandoc which automatically converts any code block with Mermaid syntax into a rendered diagram upon export.

    Any filter present here will be run during every export. We recommend that you design any filter toggle-able via a YAML frontmatter. To see how, refer to the built-in protected filters (see below). Zettlr does not guarantee the order in which these filters are run.

    Note that there will be two filters already present when you first open the tab. Those filters have been part of Zettlr for a very long time already. These are used to remove or change Zettelkasten links and tags in your files during export. These two filters are marked as "protected" like the built-in defaults files.

    A small bit of trivia: The preference settings that you can change which allow you to direct Zettlr to alter links and tags accordingly effectively only set a specific YAML frontmatter property in your file before it is exported. These filters check for this property and behave accordingly.

    GUI and Functionality

    • Feature: Full TableEditor Rewrite. The new TableEditor keeps most functionality of the previous version, with the exception of more safeguards against data loss, and more ergonomic usage.
    • Feature: Image and PDF previews. Zettlr has now two dedicated viewers that allow users to open common image types and PDF files right from within the app for preview purposes (#5501).
    • Feature: Fully rewritten citation parser (#5902).
    • Feature: Full-text (aka. global) search runs can now be cancelled via a dedicated button. You can now also trigger a new search while another search is already running.
    • Feature: Individual global search results can now be copied to the clipboard (#2070).
    • Feature: The file manager can now show and display other file types as opposed to having those only in the sidebar. Images and PDF files can be opened directly in Zettlr, while other files will be opened using the system default application. You can use the appropriate section in the advanced settings to customize this. By default, none of the new file types will be displayed in the file manager (#5501).
    • Feature: Zettlr now provides a Liquid Glass icon for macOS 26.
    • Feature: A new option has been added to allow a simple switching between a raw Markdown syntax mode and a preview mode ("WYSIWYG"), both in the settings and in the statusbar. Clicking it will toggle Markdown files between a pure syntax view, and a mode in which those items which you have selected will be pre-rendered/previewed (#4514).
    • Feature: Zettlr now ships with a brand-new onboarding wizard that helps new users tweak some central settings immediately without having to scour the preferences.
    • Feature: macOS users with an Apple Silicon chip can now access Writing Tools from context menus.
    • Feature: Allow turning off the behavior of Zettlr to automatically open files upon successful export (#5609).
    • Feature: Added a simple setting that forcefully enables Pandoc's mark- extension when exporting from Markdown if that is not already enabled. This ensures that ==highlighted== spans are properly considered in any output format.
    • Feature: Improved the calendar view in the statistics window to better convey the numbers. It now features a gradient heatmap, only considers the numbers from the visible year, and logs the numbers to spread out the distribution across the new, ten activity levels.
    • Feature: Improved the statistics chart to better help you contextualize your writing flow. It now shows you your current word count for this week, and compares it to this and last years's averages.
    • Feature: The LanguageTool integration is now more performant and allows ignoring of certain rules (#5910). Whenever you ignore a rule, it shows up in the spellchecking preferences section alongside some additional info. From this section you can re-enable it by removing it from the list of ignored rules.
    • Feature: "Hide heading characters" now properly hides the characters instead of replacing them with another element, bringing Zettlr's renderer closer to a true WYSIWYG experience. The heading level is now indicated to the left side in its own gutter element.
    • Feature: You can now show line numbers in Markdown files via a new setting (#5917).
    • Feature: Zettlr has now improved support for reference-style links. This support extends to the link context-menu (which now supports handling links from both link and link reference), the tooltips (which accurately show link previews), rendering (which accounts for link labels), to any action (such as copying or removing a link) (#5142).
    • Feature: Zettlr now supports loading BibLaTeX libraries as well (#460).
    • Feature: Zettlr now correctly displays crossref-style citations (#248).
    • Feature: You can now collapse and un-collapse the files and workspace sections in the file manager. This can be helpful if you are working with both a lot of individual files and workspaces. Your choice is remembered (#5916).
    • Feature: Extended the scope and application of vibrancy on macOS.
    • Feature: Working with footnotes is now more convenient than ever. Zettlr now has an update listener that constantly scans the document for any rogue footnotes and references (which are missing their corresponding reference or footnote), and ensures that the numbering is always correct. This means that you can delete a footnote, and be certain that Zettlr will have removed the now-dangling reference, too. The same applies if you remove a reference that you no longer need. Lastly, deleting footnotes becomes more convenient. Now, if you delete characters and reach a footnote, Zettlr will first select the entire footnote to visually indicate that you are about to delete a footnote, then a second deletion will remove the entire footnote at once.
    • Feature: Fully hide both titlebar and toolbar if the setting "Hide toolbar in distraction free" is on, the user has activated distraction free and the window is in fullscreen. This means that, while Zettlr is not in fullscreen, there will always be either a titlebar or toolbar to move the window around, but in fullscreen, the editor can take up the entire window area (#3999).
    • Feature: Zettlr now exposes the Lua filter directory to you. Now you can add, remove, and modify both the built-in filters as well as your own, custom ones.
    • Feature: The exporting workflow is now smoother. The export button will be focused as soon as the export popover opens, meaning you can press Enter to start the export using the current settings.
    • Change: Zettlr now monitors your documents and will automatically remove footnotes and references without the corresponding reference or footnote. If you have any documents in which you have un-referenced footnotes, or references that are currently unused, please make sure to change this before updating.
    • Change: Snippets: The $FILENAME variable now does not contain the file extension anymore. Users who also want the extension should update their snippets to $FILENAME$EXTENSION (#4191).
    • Change: The word and character counters in the statusbar now always show both counts.
    • Change: Removed the readability mode toggle from the toolbar. You can now trigger the readability mode via the status bar.
    • Change: Modified the Zettelkasten link insertion workflow. The previous settings "Link with filename only" and "When linking files, add the document name …" have been removed. Instead, there are two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible." The first new setting will always insert the detected file title (YAML frontmatter title; first heading level 1; filename) as the link label. If disabled, Zettlr will always create links without labels. The second setting controls whether Zettlr will always use filenames to link to files, or use IDs where available.
    • A11y: Zettlr now respects if you choose to reduce transparency in system settings and no longer add window vibrancy on macOS.
    • Snippets can now be nested (#5939).
    • You can now show an item in Finder/Explorer/file browser when right-clicking a document tab (#5914).
    • Fixed inline math not rendering when transforming Markdown to HTML (e.g., in footnotes).
    • The diagnostics info field in the statusbar now toggles the lint panel, instead of only opening the panel (#5847).
    • Fixed WebP images not rendering from relative paths (#5181).
    • Fixed the behavior when clicking widgets (citations, etc.) to accurately select only the widget's source text (#5682).
    • Update it-IT translations (#5831).
    • Update da-DA translations (#5868).
    • Update de-DE translations.
    • Added support for nix syntax highlighting (#5954).
    • Fixed incorrect cursor position after inserting IDs (#5846).
    • The toolbar word counter no longer wraps (#5774; #5881).
    • Fix context menu entry "Insert table" not working (#5835).
    • The keyboard shortcuts for snippets no longer require the field, thus preventing errors in EditorViews that map the corresponding shortcuts but don't have snippets installed.
    • The three-way-toggle for the file manager and global search does not wrap on Windows anymore (#5876).
    • The toolbar can now scroll left and right if the main window is too narrow (#5873; #5022).
    • Popovers (especially in the toolbar) will now properly close when clicking the associated toolbar button a second time (#5870).
    • Style improvements: linter panel dark mode (#5882); drop cursor (#5883); export, pomodoro, and tags popover (#5895); spacing in file manager tree view (#5891); global search (#5894).
    • Switched the icons for code and comments in the formatting toolbar (#5901).
    • The word counter now uses a proper segmenter that will make the word count more accurate for languages that do not use spaces to separate words (#5898).
    • Fixed the tutorial pages not correctly opening on first start.
    • Improved the macOS tray icon display.
    • Single clicks on the tray icon now activate the app (#4267).
    • Fixed footnote placing edge cases.
    • Due to updates in Apple's Human Interface Guidelines, the main process now no longer removes accelerators/keyboard shortcuts from the menus.
    • The recent documents provider now uses the OS API to return a list of recent documents. The provider is only retained for Linux at this point.
    • Improved performance for documents with many and/or large tables (#5903).
    • Fixes print functionality by completely abandoning the iframe approach and switching to the built-in Markdown-to-HTML parser.
    • Fixed the user dictionary not persisting to disk under certain conditions (#5922).
    • The toolbar update button now includes a clearly visible label indicating that an update is available, making it less likely to miss it.
    • Improved the styling and labelling of the additional attachment extensions setting in the advanced settings
    • The citation context menu now shows rendered citations instead of the raw citation keys, and utilizes macOS's sublabel feature to describe the context menu items.
    • Changed default config settings for new installations:
      • Dark mode is now preset to true if the OS reports that it uses dark colors.
      • Vibrancy on macOS is now set to true only if the user does not prefer reduced transparency.
    • Improved drag-and-drop behavior in the table of contents (#5871).
    • Improved the layout of the assets window (#5942).
    • Improved performance impact of references tab by only updating the bibliography on save, not on every keystroke (#5518).
    • Fixed images with brackets in the filename from not showing up (#3825).
    • Switched the window controls on Windows computers to the native controls. This will enable a set of additional OS-level functionality (such as hovering over the maximize-button to show a split-screen menu).
    • Fixed a bug that would not assign the correct footnote body class to footnote bodies. Now, footnotes will be rendered in a smaller font size and can be styled as a block.
    • Made the dark editor background less black, and increase contrast of the dark selection background for the Karl-Marx-Stadt theme.
    • Indentation preferences from the main settings now also apply to code editors where applicable.
    • The emphasis renderer now also hides formatting characters for footnote reference labels.
    • Images and links will now be detected more robustly (#5964).
    • Improved parsing footnotes (especially with multi-paragraph contents) (#5968).
    • Improved Markdown-to-HTML conversion (#5968).
    • Fixed image parsing for images with no ALT-text (#5963).
    • Horizontal scrolling in the "thin" file manager mode is no longer restricted to macOS, and also available on Linux and Windows.
    • Fixed the config provider never announcing to the renderers when the user added or removed a workspace/root file.
    • Fixed an issue where the sorting doesn't automatically re-apply (#5938; #5184).
    • Fixed an issue where not all file-links have been reported to the file autocomplete (#5920).
    • Fixed some issues with the file manager not properly reacting to changes in the loaded files (#5784; #5773; #5594).
    • Fixed an issue with deleting files outside of loaded workspaces (#5345).
    • Increased the dropzone size for moving files around and splitting/merging the various editor panes.
    • The Update provider does not show error boxes anymore if the update check failed due to a timeout (#5944).
    • Links in headers are now properly accounted for (#5983).
    • Headers level 1 will now be rendered to plain text for the purpose of displaying in various places (document tabs, file manager, etc.) (#5983).
    • Newly created defaults files will now be directly selected so that you can directly start editing them.
    • Fixed the selected directory not uncollapsing upon boot (#5156).
    • Fixed the smooth cursor animation, which stopped working in Zettlr 3.0 due to the switch from CodeMirror 5 to CodeMirror 6.
    • Zettlr won't attempt to check for updates anymore if the device is offline.
    • Improve performance by debouncing word counts (#5952).
    • Empty selectable lists now show a message visually indicating that the list is empty.
    • The snippets view now indicates better if there is no selected snippet.
    • When adding either snippets or import/export profiles, you can now enter the new name for these directly in the list instead of having to rename a random file.
    • Popovers now have an improved arrow color for better visibility.
    • Fix wrong display in relative directory paths during global search.
    • Replace misleading folder icons (folder and open folder) with new icon choices ("Home" and "Ban").
    • Fix a small bug that would throw an error if a user would specify the bibliography key in a profile as a single string, instead of a list.
    • Replacing tags works now case-insensitive (replacing #hello with #olleh now also replaces #HeLlO) (#6009).
    • Table header cells are now aligned left by default.
    • Increase icon sizes in file manager.
    • Fixed a bug that would inadvertently emit metadata for the PO-file if translating an empty string.
    • Re-implemented linking to folders from within documents (#6023).

    Under the Hood

    • Update Electron to version 39.2.6.
    • Update Pandoc to version 3.8.3.
    • Feature/Change: Full rewrite of the File System Abstraction Layer (FSAL). The rewrite has fully transformed the file abstraction logic to remove any tree structures, and instead mostly treat all loaded files as a single, long list of files and folders. Any type of tree structure is now purely visual and left where it needs to be (that is, the file tree and file list components that do show the files in a tree structure). In addition, we have implemented a set of improvements that should make everything work much smoother; in no particular order:
      • Remove any tree data structures pertaining to the loaded files. This includes the full removal of the WorkspacesProvider, whose job it essentially only was to maintain those tree structures. We now treat files as well as the change events emitted by the watchdog (to observe any remote changes) as a flat stream of events.
      • Rewrote the WorkspaceStore in the renderer to reflect this change, thus reducing the store's size by a lot. The store now only maintains a big list of loaded paths, as well as all descriptors in a Map structure.
      • The events from the file watchers are now emitted directly from the FSAL; there is no round trip through the WorkspaceProvider anymore.
      • Notably, DirDescriptor structures no longer contain any reference to children, since we do not read in any descriptors recursively anymore. Instead, consumers of DirDescriptors will now make a second roundtrip to fetch any direct descendants of a directory. Recursion is now implicit in the way the tree-like structures in the Vue components have been implemented.
      • Sorting has now been pushed to the edge in that the main process does no longer concern itself with sorting. That only happens right where it's needed from now on; that is: the file manager and the project properties. This makes sorting more reactive to configuration changes (since it now happens automagically due to Vue's reactivity instead of having to listen for relevant events and not forget to manually do it in main), and maintenance much easier.
      • Removed the root property on descriptors, since this is not dependent on the file system state and can easily be computed on demand.
    • Since CSS has become quite powerful, move all LESS-files to CSS.
    • Debounce the splash screen update frequency to at most 60fps to reduce the load on the IPC pipe while the screen is shown.
    • Added new curly rule to ESLint, enforcing curly brackets for block-statement declarations (if, for, while, etc.).
    • The enabled property of context menu items is now optional, and defaults to true.
    • EditorPanes will no longer load all documents at the same time, and instead reuse the existing MarkdownEditor component for a single document. This greatly reduces memory consumption, especially for very full tab bars, since only a single document will be actively rendered at any one time.
    • Moved the previously shared common types for the context menu in the renderer into the correct module to colocate the code. The shared types have been a remnant from a time before TypeScript supported the type keyword, and will subsequently be removed.
    • Moved the DirectedGraph class from the link provider to the stats window.
    • Switched back from electron-devtools-assembler to electron-devtools-installer; now the Vue.js devtools extension works again.
    • Style groups in form builder fields now support a label that will be rendered atop of these groups.
    • Zettlr now records and remembers the binary's build date. This information is shown in the debug info to help pinpoint from when a version is. In addition, this information is now used to disambiguate nightly versions so that both the FSAL cache will be cleared more regularly, and you get a visual indicator that you did update your nightly release.
    • The AST parser now properly detects task lists, and the Markdown-to-HTML converter appropriately handles them.
    • Improved list form controls. They now allow customizing the delete label and provide a custom "No records" message.
    • The rangeInSelection utility function now accepts an optional parameter that allows inclusion of adjacent selection ranges in calculating the result. This allows, e.g., renderers to detect whether a selection touches a node-to-be- rendered.
    • Added a loading spinner component that can be used to indicate that something is loading.
    • Context menu items now can have an action property, which is a simple function that will be called when the item is clicked. Those items do not have to have an ID (which is now an optional property). Items with IDs and without actions will still call the provided callback function.
    • The Markdown AST parser now also emits labelFrom and labelTo-properties for footnote references for easy access to the reference label.
    • If loading a window fails due to whatever reason, the corresponding error will now be shown to the user using an error dialog.
    • Aligned the math parser to the internal CodeMirror APIs (#5971).
    • Zettlr now declares nightly releases via the build flags instead of prerelease (e.g., 4.0.0-beta+nightly instead of 4.0.0-beta-nightly), since the previous way of declaring betas would make the internal semver check would declare 4.0.0-beta-nightly to be the same as 4.0.0-beta.1-nightly.
    • Zettlr now properly offers updating to a newer prerelease versions if users are on a nightly version (e.g., beta -> beta.1).
    • Log any error output from the Pandoc update script if the process failed (#5864).
    • The window manager now emits fullscreen state change events to the main windows. This allows Custom CSS and other parts of the state to subscribe to whether the body has the fullscreen class and perform changes.
    • The Assets Provider now ensures that defaults and snippets always have the correct filename extension as required.
    • Relocate the PopoverWrapper component to the common Vue directory for access in other windows.
    • Popovers now allow their parent element to specify placement priorities. Instead of always trying to place the popover first below, then right, then above the element, and never to the left, the owner of a Popover can now specify a set of priorities for placement. The PopoverWrapper will use the first priority that can be fulfilled while respecting space constraints. The default priorities reproduce the existing behavior (with the added ability to use the left side if necessary).
    • Text fields now reliably receive focus where appropriate.
    • The CodeEditor component now supports Lua syntax.

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.0.0-beta.3...v4.0.0-beta.4

  18. 4.0.0-beta.3

    展開

    GitHub Release

    This fourth beta improves again upon a lot of small things. The most notable addition to this beta compared to the previous is the exposure of the Lua filter directory to you directly via the assets manager.

    For the full changelog, as always, see below.

    Changelog

    Full TableEditor Rewrite

    This release contains a full rewrite of the TableEditor. The old implementation of the TableEditor had many bugs and inconveniences that made working with Markdown tables barely less cumbersome than having to deal with raw Markdown tables. Users criticized volatile data handling and experienced frequent data loss. This is why we redesigned the TableEditor from the ground up. With this release, we are finally able to give the new experience to you.

    The most important improvement is that now data loss should be a thing of the past. The new TableEditor makes full use of the available features of the editor to keep the data as safe as possible. But we didn't want to stop there. Because the TableEditor hadn't received a face lift in years, we asked ourselves what else the TableEditor was missing.

    From a user perspective, we have kept the design of the TableEditor as close to the former UX as possible, while also fixing a few oddities. Specifically, the buttons of the TableEditor have been fully redesigned to be more minimalist. Also gone is the infamous "Save" button that was not able to help prevent data loss. The new TableEditor now features proper syntax highlighting so that you can more easily verify that you are authoring proper Markdown. In addition, the new TableEditor is now faster, more memory efficient, and it should be simpler to fill entire tables with data.

    Lastly, one big improvement of the new TableEditor is that you don't have to use it to be more efficient in authoring tables. Specifically, we decided to implement all functionality fully keyboard-oriented. This means that for any modification you may want to make there is now a shortcut. Adding and removing rows and columns; clearing data from rows, columns, or the entire table; aligning column text left, right, or center; swapping rows or columns; etc. Anything is now possible either with the new built-in context menu, or a quick keyboard shortcut.

    There is only one thing we stopped to support: grid tables. Given that their structure can be much more difficult to parse we wanted to err on the side of caution. However, some keyboard shortcuts such as navigating between cells will still work with grid tables. Since users will most of the time only edit simple tables, we believe this to be an acceptable compromise — while not completely ruling out supporting grid tables, especially since Pandoc has started heavily investing in an improvement of their grid table support.

    In any case, we hope that the new TableEditor will finally fix the issues you experienced over the past years — and we would like to apologize that it took us so long to fix all of these issues at once!

    Changes to the snippet $FILENAME variable

    In this update, we have implemented a change in which the $FILENAME variable no longer includes the filename extension. This means that, while $FILENAME has in the past resolved to my-file.md, it will now only include my-file.

    If you rely on the $FILENAME-variable in any of your snippets, please make sure to update it by adding the variable $EXTENSION behind it. In other words, everywhere you need only the filename without its extension, you can keep $FILENAME, but wherever you need both the file name and its file extension, please use $FILENAME$EXTENSION. (The latter variable includes the leading period of the extension, so do not write $FILENAME.$EXTENSION.)

    Image Viewer and PDF Viewer

    This update brings with it a great new feature for Zettlr: A built-in image viewer and PDF viewer. Once you have selected in the settings that you wish to open images or PDF files in Zettlr instead of the default behavior to open it externally, Zettlr will open them in editor panes just like the editors. You can rearrange them just like you can other files, and you have some options available to inspect the files.

    For images, the viewer offers various options to zoom and fit the images so that you can view every detail of them while having other files open side-by-side. In addition, the image viewer offers four background modes to accommodate transparency and difficult-to-view colors in the images better: transparent (the default), a black background, white background, and a translucent checkerboard background.

    The PDF viewer likewise allows you to preview PDF files using Chromium's built- in PDF viewer that you may already know if you have opened PDF files in Google Chrome or Edge. Due to restrictions in how this works, however, you will have to manually "enable" such a viewer before being able to scroll it by clicking into it. Whether an iframe is interactive is indicated by a small border around the iframe.

    Note that both image and PDF viewers are just that: viewers. As Zettlr is a text app, we do not plan on implementing any ways of editing images or PDF files. To annotate your PDF files, please continue using your existing workflow.

    New Citation Parser

    This release of Zettlr ships with a fully rewritten citation parser. We have decided to do so because the existing citation parser was very coarse. It would only detect and indicate entire citation nodes, but it could not distinguish between the various parts of citations (such as prefix, citekey, and suffix). In addition, there were quite many inefficiencies in how Zettlr would parse citations.

    The new citation parser aims at fixing these issues. It now mounts individual nodes into the document for all individual parts of a citation node. Specifically, it now detects formatting characters, the @-sign, the suppress- author-flag (a hyphen preceding the @-sign), prefix, suffix, and the locator individually. This not just makes styling individual citation parts possible, but also makes all processing within Zettlr more efficient and faster. Especially in documents with a lot of citations, you should be able to observe a performance improvement.

    Lastly, we took this opportunity to align the parser more with how Pandoc Citeproc processes citations. Most notably, this includes relaxing some requirements such as having to place commas after the citekey, and support for curly brackets, which allows you more flexibility in defining citekeys (e.g., @{AuthorYear}) and locators (e.g., {pp. 23-24, 66-69}),

    If you prefer to style Zettlr using Custom CSS, you can now style the individual parts of your citations, using the following CSS classes:

    • cm-citation: The entire citation node
    • cm-citation-mark: Formatting characters ({}[];) except the @-sign and the suppress-author-flag
    • cm-citation-prefix: The citation prefix
    • cm-citation-suppress-author-flag: The suppress-author-flag
    • cm-citation-at-sign: The @-sign in front of your citekey
    • cm-citation-citekey: The actual cite key (sans surrounding curly brackets)
    • cm-citation-locator: The locator after your citekey
    • cm-citation-suffix: The citation suffix

    Modified Zettelkasten Link Workflow

    With this update, we have updated the Zettelkasten link insertion workflow. This is due to the new capabilities of Zettlr to understand link labels. To do so, we have removed the previous settings "Link with filename only" and "When linking files, add the document name …". Instead, we have added two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible."

    The new workflow applies when you autocomplete a filename, and works as follows:

    1. If "Use the file ID" is enabled, Zettlr will use a file's ID, if the file has one, and fall back to the filename only where no ID is available. If it is disabled, Zettlr will always use the filename to generate internal Wikilinks.
    2. If "Always use the file title" is enabled, Zettlr will add the file's title (YAML frontmatter title; first heading level 1; filename) as the link label. If it is disabled, Zettlr will never add a link label automatically.

    Footnote Workflow Improvements

    This update improves the footnote handling workflow a lot. Until now, Zettlr was only able to properly insert new footnotes. However, the footnote deletion process still required you to manually delete both the footnote label and its accompanying reference.

    We have now implemented a few new functions that help you manage footnotes. First, when you delete text by pressing Backspace, and you reach a footnote label, Zettlr will now select the entire footnote label instead of deleting the closing bracket of the label. When you press Backspace a second time, it will remove the entire label at once. This gives you both a visual indication that you are about to delete a footnote, and make it easier (since it requires you to press Backspace only twice, instead of at least four times).

    Note that some functionality does not apply to footnote labels that contain text other than numbers.

    Rewritten FSAL

    A change that is more subtle to note is a full rewrite of the File System Abstraction Layer (FSAL). For more technical details, see the "Under the hood" section below. For you, what should change is that Zettlr should now feel snappier once it's booted up. We have cleaned up a lot of code under he hood which will make changes to any file appear much faster across the app. In addition, Zettlr should now have no issues detecting dozens of file changes in quick succession; something that has not worked perfectly in the past.

    Lua Filters Interface

    This version exposes the Lua filters directly to you. The assets manager now has a new tab that allows you to create, modify, and delete existing Lua filters that Zettlr provides to Pandoc during exports. You can use them to modify your exported files before Pandoc converts them to your export target. This is useful to change certain syntax elements which Pandoc does not natively support. One very common example for this is to add a Mermaid filter to Pandoc which automatically converts any code block with Mermaid syntax into a rendered diagram upon export.

    Any filter present here will be run during every export. We recommend that you design any filter toggle-able via a YAML frontmatter. To see how, refer to the built-in protected filters (see below). Zettlr does not guarantee the order in which these filters are run.

    Note that there will be two filters already present when you first open the tab. Those filters have been part of Zettlr for a very long time already. These are used to remove or change Zettelkasten links and tags in your files during export. These two filters are marked as "protected" like the built-in defaults files.

    A small bit of trivia: The preference settings that you can change which allow you to direct Zettlr to alter links and tags accordingly effectively only set a specific YAML frontmatter property in your file before it is exported. These filters check for this property and behave accordingly.

    GUI and Functionality

    • Feature: Full TableEditor Rewrite. The new TableEditor keeps most functionality of the previous version, with the exception of more safeguards against data loss, and more ergonomic usage.
    • Feature: Image and PDF previews. Zettlr has now two dedicated viewers that allow users to open common image types and PDF files right from within the app for preview purposes (#5501).
    • Feature: Fully rewritten citation parser (#5902).
    • Feature: Full-text (aka. global) search runs can now be cancelled via a dedicated button. You can now also trigger a new search while another search is already running.
    • Feature: Individual global search results can now be copied to the clipboard (#2070).
    • Feature: The file manager can now show and display other file types as opposed to having those only in the sidebar. Images and PDF files can be opened directly in Zettlr, while other files will be opened using the system default application. You can use the appropriate section in the advanced settings to customize this. By default, none of the new file types will be displayed in the file manager (#5501).
    • Feature: Zettlr now provides a Liquid Glass icon for macOS 26.
    • Feature: A new option has been added to allow a simple switching between a raw Markdown syntax mode and a preview mode ("WYSIWYG"), both in the settings and in the statusbar. Clicking it will toggle Markdown files between a pure syntax view, and a mode in which those items which you have selected will be pre-rendered/previewed (#4514).
    • Feature: Zettlr now ships with a brand-new onboarding wizard that helps new users tweak some central settings immediately without having to scour the preferences.
    • Feature: macOS users with an Apple Silicon chip can now access Writing Tools from context menus.
    • Feature: Allow turning off the behavior of Zettlr to automatically open files upon successful export (#5609).
    • Feature: Added a simple setting that forcefully enables Pandoc's mark- extension when exporting from Markdown if that is not already enabled. This ensures that ==highlighted== spans are properly considered in any output format.
    • Feature: Improved the calendar view in the statistics window to better convey the numbers. It now features a gradient heatmap, only considers the numbers from the visible year, and logs the numbers to spread out the distribution across the new, ten activity levels.
    • Feature: Improved the statistics chart to better help you contextualize your writing flow. It now shows you your current word count for this week, and compares it to this and last years's averages.
    • Feature: The LanguageTool integration is now more performant and allows ignoring of certain rules (#5910). Whenever you ignore a rule, it shows up in the spellchecking preferences section alongside some additional info. From this section you can re-enable it by removing it from the list of ignored rules.
    • Feature: "Hide heading characters" now properly hides the characters instead of replacing them with another element, bringing Zettlr's renderer closer to a true WYSIWYG experience. The heading level is now indicated to the left side in its own gutter element.
    • Feature: You can now show line numbers in Markdown files via a new setting (#5917).
    • Feature: Zettlr has now improved support for reference-style links. This support extends to the link context-menu (which now supports handling links from both link and link reference), the tooltips (which accurately show link previews), rendering (which accounts for link labels), to any action (such as copying or removing a link) (#5142).
    • Feature: Zettlr now supports loading BibLaTeX libraries as well (#460).
    • Feature: Zettlr now correctly displays crossref-style citations (#248).
    • Feature: You can now collapse and un-collapse the files and workspace sections in the file manager. This can be helpful if you are working with both a lot of individual files and workspaces. Your choice is remembered (#5916).
    • Feature: Extended the scope and application of vibrancy on macOS.
    • Feature: Working with footnotes is now more convenient than ever. Zettlr now has an update listener that constantly scans the document for any rogue footnotes and references (which are missing their corresponding reference or footnote), and ensures that the numbering is always correct. This means that you can delete a footnote, and be certain that Zettlr will have removed the now-dangling reference, too. The same applies if you remove a reference that you no longer need. Lastly, deleting footnotes becomes more convenient. Now, if you delete characters and reach a footnote, Zettlr will first select the entire footnote to visually indicate that you are about to delete a footnote, then a second deletion will remove the entire footnote at once.
    • Feature: Fully hide both titlebar and toolbar if the setting "Hide toolbar in distraction free" is on, the user has activated distraction free and the window is in fullscreen. This means that, while Zettlr is not in fullscreen, there will always be either a titlebar or toolbar to move the window around, but in fullscreen, the editor can take up the entire window area (#3999).
    • Feature: Zettlr now exposes the Lua filter directory to you. Now you can add, remove, and modify both the built-in filters as well as your own, custom ones.
    • Change: Zettlr now monitors your documents and will automatically remove footnotes and references without the corresponding reference or footnote. If you have any documents in which you have un-referenced footnotes, or references that are currently unused, please make sure to change this before updating.
    • Change: Snippets: The $FILENAME variable now does not contain the file extension anymore. Users who also want the extension should update their snippets to $FILENAME$EXTENSION (#4191).
    • Change: The word and character counters in the statusbar now always show both counts.
    • Change: Modified the Zettelkasten link insertion workflow. The previous settings "Link with filename only" and "When linking files, add the document name …" have been removed. Instead, there are two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible." The first new setting will always insert the detected file title (YAML frontmatter title; first heading level 1; filename) as the link label. If disabled, Zettlr will always create links without labels. The second setting controls whether Zettlr will always use filenames to link to files, or use IDs where available.
    • A11y: Zettlr now respects if you choose to reduce transparency in system settings and no longer add window vibrancy on macOS.
    • Snippets can now be nested (#5939).
    • You can now show an item in Finder/Explorer/file browser when right-clicking a document tab (#5914).
    • Fixed inline math not rendering when transforming Markdown to HTML (e.g., in footnotes).
    • The diagnostics info field in the statusbar now toggles the lint panel, instead of only opening the panel (#5847).
    • Fixed WebP images not rendering from relative paths (#5181).
    • Fixed the behavior when clicking widgets (citations, etc.) to accurately select only the widget's source text (#5682).
    • Update it-IT translations (#5831).
    • Update da-DA translations (#5868).
    • Update de-DE translations.
    • Added support for nix syntax highlighting (#5954).
    • Fixed incorrect cursor position after inserting IDs (#5846).
    • The toolbar word counter no longer wraps (#5774; #5881).
    • Fix context menu entry "Insert table" not working (#5835).
    • The keyboard shortcuts for snippets no longer require the field, thus preventing errors in EditorViews that map the corresponding shortcuts but don't have snippets installed.
    • The three-way-toggle for the file manager and global search does not wrap on Windows anymore (#5876).
    • The toolbar can now scroll left and right if the main window is too narrow (#5873; #5022).
    • Popovers (especially in the toolbar) will now properly close when clicking the associated toolbar button a second time (#5870).
    • Style improvements: linter panel dark mode (#5882); drop cursor (#5883); export, pomodoro, and tags popover (#5895); spacing in file manager tree view (#5891); global search (#5894).
    • Switched the icons for code and comments in the formatting toolbar (#5901).
    • The word counter now uses a proper segmenter that will make the word count more accurate for languages that do not use spaces to separate words (#5898).
    • Fixed the tutorial pages not correctly opening on first start.
    • Improved the macOS tray icon display.
    • Single clicks on the tray icon now activate the app (#4267).
    • Fixed footnote placing edge cases.
    • Due to updates in Apple's Human Interface Guidelines, the main process now no longer removes accelerators/keyboard shortcuts from the menus.
    • The recent documents provider now uses the OS API to return a list of recent documents. The provider is only retained for Linux at this point.
    • Improved performance for documents with many and/or large tables (#5903).
    • Fixes print functionality by completely abandoning the iframe approach and switching to the built-in Markdown-to-HTML parser.
    • Fixed the user dictionary not persisting to disk under certain conditions (#5922).
    • The toolbar update button now includes a clearly visible label indicating that an update is available, making it less likely to miss it.
    • Improved the styling and labelling of the additional attachment extensions setting in the advanced settings
    • The citation context menu now shows rendered citations instead of the raw citation keys, and utilizes macOS's sublabel feature to describe the context menu items.
    • Changed default config settings for new installations:
      • Dark mode is now preset to true if the OS reports that it uses dark colors.
      • Vibrancy on macOS is now set to true only if the user does not prefer reduced transparency.
    • Improved drag-and-drop behavior in the table of contents (#5871).
    • Improved the layout of the assets window (#5942).
    • Improved performance impact of references tab by only updating the bibliography on save, not on every keystroke (#5518).
    • Fixed images with brackets in the filename from not showing up (#3825).
    • Switched the window controls on Windows computers to the native controls. This will enable a set of additional OS-level functionality (such as hovering over the maximize-button to show a split-screen menu).
    • Fixed a bug that would not assign the correct footnote body class to footnote bodies. Now, footnotes will be rendered in a smaller font size and can be styled as a block.
    • Made the dark editor background less black, and increase contrast of the dark selection background for the Karl-Marx-Stadt theme.
    • Indentation preferences from the main settings now also apply to code editors where applicable.
    • The emphasis renderer now also hides formatting characters for footnote reference labels.
    • Images and links will now be detected more robustly (#5964).
    • Improved parsing footnotes (especially with multi-paragraph contents) (#5968).
    • Improved Markdown-to-HTML conversion (#5968).
    • Fixed image parsing for images with no ALT-text (#5963).
    • Horizontal scrolling in the "thin" file manager mode is no longer restricted to macOS, and also available on Linux and Windows.
    • Fixed the config provider never announcing to the renderers when the user added or removed a workspace/root file.
    • Fixed an issue where the sorting doesn't automatically re-apply (#5938; #5184).
    • Fixed an issue where not all file-links have been reported to the file autocomplete (#5920).
    • Fixed some issues with the file manager not properly reacting to changes in the loaded files (#5784; #5773; #5594).
    • Fixed an issue with deleting files outside of loaded workspaces (#5345).
    • Increased the dropzone size for moving files around and splitting/merging the various editor panes.
    • The Update provider does not show error boxes anymore if the update check failed due to a timeout (#5944).
    • Links in headers are now properly accounted for (#5983).
    • Headers level 1 will now be rendered to plain text for the purpose of displaying in various places (document tabs, file manager, etc.) (#5983).
    • Newly created defaults files will now be directly selected so that you can directly start editing them.
    • Fixed the selected directory not uncollapsing upon boot (#5156).
    • Fixed the smooth cursor animation, which stopped working in Zettlr 3.0 due to the switch from CodeMirror 5 to CodeMirror 6.
    • Zettlr won't attempt to check for updates anymore if the device is offline.
    • Improve performance by debouncing word counts (#5952).
    • Empty selectable lists now show a message visually indicating that the list is empty.
    • The snippets view now indicates better if there is no selected snippet.
    • When adding either snippets or import/export profiles, you can now enter the new name for these directly in the list instead of having to rename a random file.
    • Popovers now have an improved arrow color for better visibility.

    Under the Hood

    • Update Electron to version 39.0.0.
    • Update Pandoc to version 3.8.2.1.
    • Feature/Change: Full rewrite of the File System Abstraction Layer (FSAL). The rewrite has fully transformed the file abstraction logic to remove any tree structures, and instead mostly treat all loaded files as a single, long list of files and folders. Any type of tree structure is now purely visual and left where it needs to be (that is, the file tree and file list components that do show the files in a tree structure). In addition, we have implemented a set of improvements that should make everything work much smoother; in no particular order:
      • Remove any tree data structures pertaining to the loaded files. This includes the full removal of the WorkspacesProvider, whose job it essentially only was to maintain those tree structures. We now treat files as well as the change events emitted by the watchdog (to observe any remote changes) as a flat stream of events.
      • Rewrote the WorkspaceStore in the renderer to reflect this change, thus reducing the store's size by a lot. The store now only maintains a big list of loaded paths, as well as all descriptors in a Map structure.
      • The events from the file watchers are now emitted directly from the FSAL; there is no round trip through the WorkspaceProvider anymore.
      • Notably, DirDescriptor structures no longer contain any reference to children, since we do not read in any descriptors recursively anymore. Instead, consumers of DirDescriptors will now make a second roundtrip to fetch any direct descendants of a directory. Recursion is now implicit in the way the tree-like structures in the Vue components have been implemented.
      • Sorting has now been pushed to the edge in that the main process does no longer concern itself with sorting. That only happens right where it's needed from now on; that is: the file manager and the project properties. This makes sorting more reactive to configuration changes (since it now happens automagically due to Vue's reactivity instead of having to listen for relevant events and not forget to manually do it in main), and maintenance much easier.
      • Removed the root property on descriptors, since this is not dependent on the file system state and can easily be computed on demand.
    • Since CSS has become quite powerful, move all LESS-files to CSS.
    • Debounce the splash screen update frequency to at most 60fps to reduce the load on the IPC pipe while the screen is shown.
    • Added new curly rule to ESLint, enforcing curly brackets for block-statement declarations (if, for, while, etc.).
    • The enabled property of context menu items is now optional, and defaults to true.
    • EditorPanes will no longer load all documents at the same time, and instead reuse the existing MarkdownEditor component for a single document. This greatly reduces memory consumption, especially for very full tab bars, since only a single document will be actively rendered at any one time.
    • Moved the previously shared common types for the context menu in the renderer into the correct module to colocate the code. The shared types have been a remnant from a time before TypeScript supported the type keyword, and will subsequently be removed.
    • Moved the DirectedGraph class from the link provider to the stats window.
    • Switched back from electron-devtools-assembler to electron-devtools-installer; now the Vue.js devtools extension works again.
    • Style groups in form builder fields now support a label that will be rendered atop of these groups.
    • Zettlr now records and remembers the binary's build date. This information is shown in the debug info to help pinpoint from when a version is. In addition, this information is now used to disambiguate nightly versions so that both the FSAL cache will be cleared more regularly, and you get a visual indicator that you did update your nightly release.
    • The AST parser now properly detects task lists, and the Markdown-to-HTML converter appropriately handles them.
    • Improved list form controls. They now allow customizing the delete label and provide a custom "No records" message.
    • The rangeInSelection utility function now accepts an optional parameter that allows inclusion of adjacent selection ranges in calculating the result. This allows, e.g., renderers to detect whether a selection touches a node-to-be- rendered.
    • Added a loading spinner component that can be used to indicate that something is loading.
    • Context menu items now can have an action property, which is a simple function that will be called when the item is clicked. Those items do not have to have an ID (which is now an optional property). Items with IDs and without actions will still call the provided callback function.
    • The Markdown AST parser now also emits labelFrom and labelTo-properties for footnote references for easy access to the reference label.
    • If loading a window fails due to whatever reason, the corresponding error will now be shown to the user using an error dialog.
    • Aligned the math parser to the internal CodeMirror APIs (#5971).
    • Zettlr now declares nightly releases via the build flags instead of prerelease (e.g., 4.0.0-beta+nightly instead of 4.0.0-beta-nightly), since the previous way of declaring betas would make the internal semver check would declare 4.0.0-beta-nightly to be the same as 4.0.0-beta.1-nightly.
    • Zettlr now properly offers updating to a newer prerelease versions if users are on a nightly version (e.g., beta -> beta.1).
    • Log any error output from the Pandoc update script if the process failed (#5864).
    • The window manager now emits fullscreen state change events to the main windows. This allows Custom CSS and other parts of the state to subscribe to whether the body has the fullscreen class and perform changes.
    • The Assets Provider now ensures that defaults and snippets always have the correct filename extension as required.
    • Relocate the PopoverWrapper component to the common Vue directory for access in other windows.
    • Popovers now allow their parent element to specify placement priorities. Instead of always trying to place the popover first below, then right, then above the element, and never to the left, the owner of a Popover can now specify a set of priorities for placement. The PopoverWrapper will use the first priority that can be fulfilled while respecting space constraints. The default priorities reproduce the existing behavior (with the added ability to use the left side if necessary).
    • Text fields now reliably receive focus where appropriate.
    • The CodeEditor component now supports Lua syntax.

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.0.0-beta.2...v4.0.0-beta.3

  19. 4.0.0-beta.2

    展開

    GitHub Release

    The third beta for Zettlr 4.0 is here! This one again fixes a large amount of issues and comes with some good performance improvements. For a full list of all changes in this beta, please refer to the Changelog below. Notably, what has changed since the second beta release:

    • We have fully rewritten the FSAL, heavily improving performance and load times. This also fixed a large amount of issues users have reported with recognizing files and detecting remote changes to folders, such as:
      • Directory sorting now works reliably again and is almost instant
      • Changes to files are detected much faster
      • Many successive remote changes are now correctly detected and reflected by the app
    • Zettlr now finally hides both the titlebar and the toolbar if you enter the distraction free mode while the app is in fullscreen.
    • Horizontal scrolling to switch between the file list and file tree with the "Thin" file manager mode is no longer restricted to macOS. Windows and Linux users will now also be able to scroll horizontally with a mouse with a horizontal scrollwheel, or the trackpad.
    • We have increased the size of the dropzone that appears when you drag files around to split the editor area.
    • Zettlr doesn't show disrupting error boxes if it cannot check for updates due to timeouts (which happens if you work on a work laptop with a restrictive VPN setup, for example).
    • Headers level 1 will now be displayed without Markup in various places (file manager, document tabs, etc.)
    • Update to Electron 39
    • Switch nightly version indicator to the build flag. This allows users of nightly releases to properly switch to newer beta releases.
    • Emit fullscreen info for CSS purposes so that you can style the app depending on if its in fullscreen.

    Changelog

    Full TableEditor Rewrite

    This release contains a full rewrite of the TableEditor. The old implementation of the TableEditor had many bugs and inconveniences that made working with Markdown tables barely less cumbersome than having to deal with raw Markdown tables. Users criticized volatile data handling and experienced frequent data loss. This is why we redesigned the TableEditor from the ground up. With this release, we are finally able to give the new experience to you.

    The most important improvement is that now data loss should be a thing of the past. The new TableEditor makes full use of the available features of the editor to keep the data as safe as possible. But we didn't want to stop there. Because the TableEditor hadn't received a face lift in years, we asked ourselves what else the TableEditor was missing.

    From a user perspective, we have kept the design of the TableEditor as close to the former UX as possible, while also fixing a few oddities. Specifically, the buttons of the TableEditor have been fully redesigned to be more minimalist. Also gone is the infamous "Save" button that was not able to help prevent data loss. The new TableEditor now features proper syntax highlighting so that you can more easily verify that you are authoring proper Markdown. In addition, the new TableEditor is now faster, more memory efficient, and it should be simpler to fill entire tables with data.

    Lastly, one big improvement of the new TableEditor is that you don't have to use it to be more efficient in authoring tables. Specifically, we decided to implement all functionality fully keyboard-oriented. This means that for any modification you may want to make there is now a shortcut. Adding and removing rows and columns; clearing data from rows, columns, or the entire table; aligning column text left, right, or center; swapping rows or columns; etc. Anything is now possible either with the new built-in context menu, or a quick keyboard shortcut.

    There is only one thing we stopped to support: grid tables. Given that their structure can be much more difficult to parse we wanted to err on the side of caution. However, some keyboard shortcuts such as navigating between cells will still work with grid tables. Since users will most of the time only edit simple tables, we believe this to be an acceptable compromise — while not completely ruling out supporting grid tables, especially since Pandoc has started heavily investing in an improvement of their grid table support.

    In any case, we hope that the new TableEditor will finally fix the issues you experienced over the past years — and we would like to apologize that it took us so long to fix all of these issues at once!

    Changes to the snippet $FILENAME variable

    In this update, we have implemented a change in which the $FILENAME variable no longer includes the filename extension. This means that, while $FILENAME has in the past resolved to my-file.md, it will now only include my-file.

    If you rely on the $FILENAME-variable in any of your snippets, please make sure to update it by adding the variable $EXTENSION behind it. In other words, everywhere you need only the filename without its extension, you can keep $FILENAME, but wherever you need both the file name and its file extension, please use $FILENAME$EXTENSION. (The latter variable includes the leading period of the extension, so do not write $FILENAME.$EXTENSION.)

    Image Viewer and PDF Viewer

    This update brings with it a great new feature for Zettlr: A built-in image viewer and PDF viewer. Once you have selected in the settings that you wish to open images or PDF files in Zettlr instead of the default behavior to open it externally, Zettlr will open them in editor panes just like the editors. You can rearrange them just like you can other files, and you have some options available to inspect the files.

    For images, the viewer offers various options to zoom and fit the images so that you can view every detail of them while having other files open side-by-side. In addition, the image viewer offers four background modes to accommodate transparency and difficult-to-view colors in the images better: transparent (the default), a black background, white background, and a translucent checkerboard background.

    The PDF viewer likewise allows you to preview PDF files using Chromium's built- in PDF viewer that you may already know if you have opened PDF files in Google Chrome or Edge. Due to restrictions in how this works, however, you will have to manually "enable" such a viewer before being able to scroll it by clicking into it. Whether an iframe is interactive is indicated by a small border around the iframe.

    Note that both image and PDF viewers are just that: viewers. As Zettlr is a text app, we do not plan on implementing any ways of editing images or PDF files. To annotate your PDF files, please continue using your existing workflow.

    New Citation Parser

    This release of Zettlr ships with a fully rewritten citation parser. We have decided to do so because the existing citation parser was very coarse. It would only detect and indicate entire citation nodes, but it could not distinguish between the various parts of citations (such as prefix, citekey, and suffix). In addition, there were quite many inefficiencies in how Zettlr would parse citations.

    The new citation parser aims at fixing these issues. It now mounts individual nodes into the document for all individual parts of a citation node. Specifically, it now detects formatting characters, the @-sign, the suppress- author-flag (a hyphen preceding the @-sign), prefix, suffix, and the locator individually. This not just makes styling individual citation parts possible, but also makes all processing within Zettlr more efficient and faster. Especially in documents with a lot of citations, you should be able to observe a performance improvement.

    Lastly, we took this opportunity to align the parser more with how Pandoc Citeproc processes citations. Most notably, this includes relaxing some requirements such as having to place commas after the citekey, and support for curly brackets, which allows you more flexibility in defining citekeys (e.g., @{AuthorYear}) and locators (e.g., {pp. 23-24, 66-69}),

    If you prefer to style Zettlr using Custom CSS, you can now style the individual parts of your citations, using the following CSS classes:

    • cm-citation: The entire citation node
    • cm-citation-mark: Formatting characters ({}[];) except the @-sign and the suppress-author-flag
    • cm-citation-prefix: The citation prefix
    • cm-citation-suppress-author-flag: The suppress-author-flag
    • cm-citation-at-sign: The @-sign in front of your citekey
    • cm-citation-citekey: The actual cite key (sans surrounding curly brackets)
    • cm-citation-locator: The locator after your citekey
    • cm-citation-suffix: The citation suffix

    Modified Zettelkasten Link Workflow

    With this update, we have updated the Zettelkasten link insertion workflow. This is due to the new capabilities of Zettlr to understand link labels. To do so, we have removed the previous settings "Link with filename only" and "When linking files, add the document name …". Instead, we have added two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible."

    The new workflow applies when you autocomplete a filename, and works as follows:

    1. If "Use the file ID" is enabled, Zettlr will use a file's ID, if the file has one, and fall back to the filename only where no ID is available. If it is disabled, Zettlr will always use the filename to generate internal Wikilinks.
    2. If "Always use the file title" is enabled, Zettlr will add the file's title (YAML frontmatter title; first heading level 1; filename) as the link label. If it is disabled, Zettlr will never add a link label automatically.

    Footnote Workflow Improvements

    This update improves the footnote handling workflow a lot. Until now, Zettlr was only able to properly insert new footnotes. However, the footnote deletion process still required you to manually delete both the footnote label and its accompanying reference.

    We have now implemented a few new functions that help you manage footnotes. First, when you delete text by pressing Backspace, and you reach a footnote label, Zettlr will now select the entire footnote label instead of deleting the closing bracket of the label. When you press Backspace a second time, it will remove the entire label at once. This gives you both a visual indication that you are about to delete a footnote, and make it easier (since it requires you to press Backspace only twice, instead of at least four times).

    Note that some functionality does not apply to footnote labels that contain text other than numbers.

    Rewritten FSAL

    A change that is more subtle to note is a full rewrite of the File System Abstraction Layer (FSAL). For more technical details, see the "Under the hood" section below. For you, what should change is that Zettlr should now feel snappier once it's booted up. We have cleaned up a lot of code under he hood which will make changes to any file appear much faster across the app. In addition, Zettlr should now have no issues detecting dozens of file changes in quick succession; something that has not worked perfectly in the past.

    GUI and Functionality

    • Feature: Full TableEditor Rewrite. The new TableEditor keeps most functionality of the previous version, with the exception of more safeguards against data loss, and more ergonomic usage.
    • Feature: Image and PDF previews. Zettlr has now two dedicated viewers that allow users to open common image types and PDF files right from within the app for preview purposes (#5501).
    • Feature: Fully rewritten citation parser (#5902).
    • Feature: Full-text (aka. global) search runs can now be cancelled via a dedicated button. You can now also trigger a new search while another search is already running.
    • Feature: Individual global search results can now be copied to the clipboard (#2070).
    • Feature: The file manager can now show and display other file types as opposed to having those only in the sidebar. Images and PDF files can be opened directly in Zettlr, while other files will be opened using the system default application. You can use the appropriate section in the advanced settings to customize this. By default, none of the new file types will be displayed in the file manager (#5501).
    • Feature: Zettlr now provides a Liquid Glass icon for macOS 26.
    • Feature: A new option has been added to allow a simple switching between a raw Markdown syntax mode and a preview mode ("WYSIWYG"), both in the settings and in the statusbar. Clicking it will toggle Markdown files between a pure syntax view, and a mode in which those items which you have selected will be pre-rendered/previewed (#4514).
    • Feature: Zettlr now ships with a brand-new onboarding wizard that helps new users tweak some central settings immediately without having to scour the preferences.
    • Feature: macOS users with an Apple Silicon chip can now access Writing Tools from context menus.
    • Feature: Allow turning off the behavior of Zettlr to automatically open files upon successful export (#5609).
    • Feature: Added a simple setting that forcefully enables Pandoc's mark- extension when exporting from Markdown if that is not already enabled. This ensures that ==highlighted== spans are properly considered in any output format.
    • Feature: Improved the calendar view in the statistics window to better convey the numbers. It now features a gradient heatmap, only considers the numbers from the visible year, and logs the numbers to spread out the distribution across the new, ten activity levels.
    • Feature: Improved the statistics chart to better help you contextualize your writing flow. It now shows you your current word count for this week, and compares it to this and last years's averages.
    • Feature: The LanguageTool integration is now more performant and allows ignoring of certain rules (#5910). Whenever you ignore a rule, it shows up in the spellchecking preferences section alongside some additional info. From this section you can re-enable it by removing it from the list of ignored rules.
    • Feature: "Hide heading characters" now properly hides the characters instead of replacing them with another element, bringing Zettlr's renderer closer to a true WYSIWYG experience. The heading level is now indicated to the left side in its own gutter element.
    • Feature: You can now show line numbers in Markdown files via a new setting (#5917).
    • Feature: Zettlr has now improved support for reference-style links. This support extends to the link context-menu (which now supports handling links from both link and link reference), the tooltips (which accurately show link previews), rendering (which accounts for link labels), to any action (such as copying or removing a link) (#5142).
    • Feature: Zettlr now supports loading BibLaTeX libraries as well (#460).
    • Feature: Zettlr now correctly displays crossref-style citations (#248).
    • Feature: You can now collapse and un-collapse the files and workspace sections in the file manager. This can be helpful if you are working with both a lot of individual files and workspaces. Your choice is remembered (#5916).
    • Feature: Extended the scope and application of vibrancy on macOS.
    • Feature: Working with footnotes is now more convenient than ever. Zettlr now has an update listener that constantly scans the document for any rogue footnotes and references (which are missing their corresponding reference or footnote), and ensures that the numbering is always correct. This means that you can delete a footnote, and be certain that Zettlr will have removed the now-dangling reference, too. The same applies if you remove a reference that you no longer need. Lastly, deleting footnotes becomes more convenient. Now, if you delete characters and reach a footnote, Zettlr will first select the entire footnote to visually indicate that you are about to delete a footnote, then a second deletion will remove the entire footnote at once.
    • Feature: Fully hide both titlebar and toolbar if the setting "Hide toolbar in distraction free" is on, the user has activated distraction free and the window is in fullscreen. This means that, while Zettlr is not in fullscreen, there will always be either a titlebar or toolbar to move the window around, but in fullscreen, the editor can take up the entire window area (#3999).
    • Change: Zettlr now monitors your documents and will automatically remove footnotes and references without the corresponding reference or footnote. If you have any documents in which you have un-referenced footnotes, or references that are currently unused, please make sure to change this before updating.
    • Change: Snippets: The $FILENAME variable now does not contain the file extension anymore. Users who also want the extension should update their snippets to $FILENAME$EXTENSION (#4191).
    • Change: The word and character counters in the statusbar now always show both counts.
    • Change: Modified the Zettelkasten link insertion workflow. The previous settings "Link with filename only" and "When linking files, add the document name …" have been removed. Instead, there are two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible." The first new setting will always insert the detected file title (YAML frontmatter title; first heading level 1; filename) as the link label. If disabled, Zettlr will always create links without labels. The second setting controls whether Zettlr will always use filenames to link to files, or use IDs where available.
    • A11y: Zettlr now respects if you choose to reduce transparency in system settings and no longer add window vibrancy on macOS.
    • Snippets can now be nested (#5939).
    • You can now show an item in Finder/Explorer/file browser when right-clicking a document tab (#5914).
    • Fixed inline math not rendering when transforming Markdown to HTML (e.g., in footnotes).
    • The diagnostics info field in the statusbar now toggles the lint panel, instead of only opening the panel (#5847).
    • Fixed WebP images not rendering from relative paths (#5181).
    • Fixed the behavior when clicking widgets (citations, etc.) to accurately select only the widget's source text (#5682).
    • Update it-IT translations (#5831).
    • Update da-DA translations (#5868).
    • Update de-DE translations.
    • Added support for nix syntax highlighting (#5954).
    • Fixed incorrect cursor position after inserting IDs (#5846).
    • The toolbar word counter no longer wraps (#5774; #5881).
    • Fix context menu entry "Insert table" not working (#5835).
    • The keyboard shortcuts for snippets no longer require the field, thus preventing errors in EditorViews that map the corresponding shortcuts but don't have snippets installed.
    • The three-way-toggle for the file manager and global search does not wrap on Windows anymore (#5876).
    • The toolbar can now scroll left and right if the main window is too narrow (#5873; #5022).
    • Popovers (especially in the toolbar) will now properly close when clicking the associated toolbar button a second time (#5870).
    • Style improvements: linter panel dark mode (#5882); drop cursor (#5883); export, pomodoro, and tags popover (#5895); spacing in file manager tree view (#5891); global search (#5894).
    • Switched the icons for code and comments in the formatting toolbar (#5901).
    • The word counter now uses a proper segmenter that will make the word count more accurate for languages that do not use spaces to separate words (#5898).
    • Fixed the tutorial pages not correctly opening on first start.
    • Improved the macOS tray icon display.
    • Single clicks on the tray icon now activate the app (#4267).
    • Fixed footnote placing edge cases.
    • Due to updates in Apple's Human Interface Guidelines, the main process now no longer removes accelerators/keyboard shortcuts from the menus.
    • The recent documents provider now uses the OS API to return a list of recent documents. The provider is only retained for Linux at this point.
    • Improved performance for documents with many and/or large tables (#5903).
    • Fixes print functionality by completely abandoning the iframe approach and switching to the built-in Markdown-to-HTML parser.
    • Fixed the user dictionary not persisting to disk under certain conditions (#5922).
    • The toolbar update button now includes a clearly visible label indicating that an update is available, making it less likely to miss it.
    • Improved the styling and labelling of the additional attachment extensions setting in the advanced settings
    • The citation context menu now shows rendered citations instead of the raw citation keys, and utilizes macOS's sublabel feature to describe the context menu items.
    • Changed default config settings for new installations:
      • Dark mode is now preset to true if the OS reports that it uses dark colors.
      • Vibrancy on macOS is now set to true only if the user does not prefer reduced transparency.
    • Improved drag-and-drop behavior in the table of contents (#5871).
    • Improved the layout of the assets window (#5942).
    • Improved performance impact of references tab by only updating the bibliography on save, not on every keystroke (#5518).
    • Fixed images with brackets in the filename from not showing up (#3825).
    • Switched the window controls on Windows computers to the native controls. This will enable a set of additional OS-level functionality (such as hovering over the maximize-button to show a split-screen menu).
    • Fixed a bug that would not assign the correct footnote body class to footnote bodies. Now, footnotes will be rendered in a smaller font size and can be styled as a block.
    • Made the dark editor background less black, and increase contrast of the dark selection background for the Karl-Marx-Stadt theme.
    • Indentation preferences from the main settings now also apply to code editors where applicable.
    • The emphasis renderer now also hides formatting characters for footnote reference labels.
    • Images and links will now be detected more robustly (#5964).
    • Improved parsing footnotes (especially with multi-paragraph contents) (#5968).
    • Improved Markdown-to-HTML conversion (#5968).
    • Fixed image parsing for images with no ALT-text (#5963).
    • Horizontal scrolling in the "thin" file manager mode is no longer restricted to macOS, and also available on Linux and Windows.
    • Fixed the config provider never announcing to the renderers when the user added or removed a workspace/root file.
    • Fixed an issue where the sorting doesn't automatically re-apply (#5938; #5184).
    • Fixed an issue where not all file-links have been reported to the file autocomplete (#5920).
    • Fixed some issues with the file manager not properly reacting to changes in the loaded files (#5784; #5773; #5594).
    • Fixed an issue with deleting files outside of loaded workspaces (#5345).
    • Increased the dropzone size for moving files around and splitting/merging the various editor panes.
    • The Update provider does not show error boxes anymore if the update check failed due to a timeout (#5944).
    • Links in headers are now properly accounted for (#5983).
    • Headers level 1 will now be rendered to plain text for the purpose of displaying in various places (document tabs, file manager, etc.) (#5983).
    • Newly created defaults files will now be directly selected so that you can directly start editing them.
    • Fixed the selected directory not uncollapsing upon boot (#5156).
    • Fixed the smooth cursor animation, which stopped working in Zettlr 3.0 due to the switch from CodeMirror 5 to CodeMirror 6.

    Under the Hood

    • Update Electron to version 39.0.0.
    • Update Pandoc to version 3.8.2.1.
    • Feature/Change: Full rewrite of the File System Abstraction Layer (FSAL). The rewrite has fully transformed the file abstraction logic to remove any tree structures, and instead mostly treat all loaded files as a single, long list of files and folders. Any type of tree structure is now purely visual and left where it needs to be (that is, the file tree and file list components that do show the files in a tree structure). In addition, we have implemented a set of improvements that should make everything work much smoother; in no particular order:
      • Remove any tree data structures pertaining to the loaded files. This includes the full removal of the WorkspacesProvider, whose job it essentially only was to maintain those tree structures. We now treat files as well as the change events emitted by the watchdog (to observe any remote changes) as a flat stream of events.
      • Rewrote the WorkspaceStore in the renderer to reflect this change, thus reducing the store's size by a lot. The store now only maintains a big list of loaded paths, as well as all descriptors in a Map structure.
      • The events from the file watchers are now emitted directly from the FSAL; there is no round trip through the WorkspaceProvider anymore.
      • Notably, DirDescriptor structures no longer contain any reference to children, since we do not read in any descriptors recursively anymore. Instead, consumers of DirDescriptors will now make a second roundtrip to fetch any direct descendants of a directory. Recursion is now implicit in the way the tree-like structures in the Vue components have been implemented.
      • Sorting has now been pushed to the edge in that the main process does no longer concern itself with sorting. That only happens right where it's needed from now on; that is: the file manager and the project properties. This makes sorting more reactive to configuration changes (since it now happens automagically due to Vue's reactivity instead of having to listen for relevant events and not forget to manually do it in main), and maintenance much easier.
      • Removed the root property on descriptors, since this is not dependent on the file system state and can easily be computed on demand.
    • Since CSS has become quite powerful, move all LESS-files to CSS.
    • Debounce the splash screen update frequency to at most 60fps to reduce the load on the IPC pipe while the screen is shown.
    • Added new curly rule to ESLint, enforcing curly brackets for block-statement declarations (if, for, while, etc.).
    • The enabled property of context menu items is now optional, and defaults to true.
    • EditorPanes will no longer load all documents at the same time, and instead reuse the existing MarkdownEditor component for a single document. This greatly reduces memory consumption, especially for very full tab bars, since only a single document will be actively rendered at any one time.
    • Moved the previously shared common types for the context menu in the renderer into the correct module to colocate the code. The shared types have been a remnant from a time before TypeScript supported the type keyword, and will subsequently be removed.
    • Moved the DirectedGraph class from the link provider to the stats window.
    • Switched back from electron-devtools-assembler to electron-devtools-installer; now the Vue.js devtools extension works again.
    • Style groups in form builder fields now support a label that will be rendered atop of these groups.
    • Zettlr now records and remembers the binary's build date. This information is shown in the debug info to help pinpoint from when a version is. In addition, this information is now used to disambiguate nightly versions so that both the FSAL cache will be cleared more regularly, and you get a visual indicator that you did update your nightly release.
    • The AST parser now properly detects task lists, and the Markdown-to-HTML converter appropriately handles them.
    • Improved list form controls. They now allow customizing the delete label and provide a custom "No records" message.
    • The rangeInSelection utility function now accepts an optional parameter that allows inclusion of adjacent selection ranges in calculating the result. This allows, e.g., renderers to detect whether a selection touches a node-to-be- rendered.
    • Added a loading spinner component that can be used to indicate that something is loading.
    • Context menu items now can have an action property, which is a simple function that will be called when the item is clicked. Those items do not have to have an ID (which is now an optional property). Items with IDs and without actions will still call the provided callback function.
    • The Markdown AST parser now also emits labelFrom and labelTo-properties for footnote references for easy access to the reference label.
    • If loading a window fails due to whatever reason, the corresponding error will now be shown to the user using an error dialog.
    • Aligned the math parser to the internal CodeMirror APIs (#5971).
    • Zettlr now declares nightly releases via the build flags instead of prerelease (e.g., 4.0.0-beta+nightly instead of 4.0.0-beta-nightly), since the previous way of declaring betas would make the internal semver check would declare 4.0.0-beta-nightly to be the same as 4.0.0-beta.1-nightly.
    • Zettlr now properly offers updating to a newer prerelease versions if users are on a nightly version (e.g., beta -> beta.1).
    • Log any error output from the Pandoc update script if the process failed (#5864).
    • The window manager now emits fullscreen state change events to the main windows. This allows Custom CSS and other parts of the state to subscribe to whether the body has the fullscreen class and perform changes.

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.0.0-beta.1...v4.0.0-beta.2

  20. 4.0.0-beta.1

    展開

    GitHub Release

    We are happy to announce the second beta for Zettlr 4.0. Please read the changelog below so you know what's changed.

    This beta changes a few things from the previous one, most notably:

    • Improvements in how footnotes are handled
    • Vibrancy on macOS now respects the reduce-transparency accessibility setting
    • Support for nested snippets
    • Added nix syntax highlighting support
    • Change in default config settings (new installations only): Dark mode will now be true if the OS reports that
    • Improve layout and/or styling for: assets window, native window controls (Windows), dark editor mode, dark selection color for Karl-Marx-Stadt
    • Footnote references will now be rendered in smaller font size to help distinguish them from the main body
    • Improvements in image, link, math, and footnote parsing and rendering
    • Improvements in Markdown-to-HTML conversion
    • Performance improvements
    • Bug fixes

    Changelog

    Full TableEditor Rewrite

    This release contains a full rewrite of the TableEditor. The old implementation of the TableEditor had many bugs and inconveniences that made working with Markdown tables barely less cumbersome than having to deal with raw Markdown tables. Users criticized volatile data handling and experienced frequent data loss. This is why we redesigned the TableEditor from the ground up. With this release, we are finally able to give the new experience to you.

    The most important improvement is that now data loss should be a thing of the past. The new TableEditor makes full use of the available features of the editor to keep the data as safe as possible. But we didn't want to stop there. Because the TableEditor hadn't received a face lift in years, we asked ourselves what else the TableEditor was missing.

    From a user perspective, we have kept the design of the TableEditor as close to the former UX as possible, while also fixing a few oddities. Specifically, the buttons of the TableEditor have been fully redesigned to be more minimalist. Also gone is the infamous "Save" button that was not able to help prevent data loss. The new TableEditor now features proper syntax highlighting so that you can more easily verify that you are authoring proper Markdown. In addition, the new TableEditor is now faster, more memory efficient, and it should be simpler to fill entire tables with data.

    Lastly, one big improvement of the new TableEditor is that you don't have to use it to be more efficient in authoring tables. Specifically, we decided to implement all functionality fully keyboard-oriented. This means that for any modification you may want to make there is now a shortcut. Adding and removing rows and columns; clearing data from rows, columns, or the entire table; aligning column text left, right, or center; swapping rows or columns; etc. Anything is now possible either with the new built-in context menu, or a quick keyboard shortcut.

    There is only one thing we stopped to support: grid tables. Given that their structure can be much more difficult to parse we wanted to err on the side of caution. However, some keyboard shortcuts such as navigating between cells will still work with grid tables. Since users will most of the time only edit simple tables, we believe this to be an acceptable compromise — while not completely ruling out supporting grid tables, especially since Pandoc has started heavily investing in an improvement of their grid table support.

    In any case, we hope that the new TableEditor will finally fix the issues you experienced over the past years — and we would like to apologize that it took us so long to fix all of these issues at once!

    Changes to the snippet $FILENAME variable

    In this update, we have implemented a change in which the $FILENAME variable no longer includes the filename extension. This means that, while $FILENAME has in the past resolved to my-file.md, it will now only include my-file.

    If you rely on the $FILENAME-variable in any of your snippets, please make sure to update it by adding the variable $EXTENSION behind it. In other words, everywhere you need only the filename without its extension, you can keep $FILENAME, but wherever you need both the file name and its file extension, please use $FILENAME$EXTENSION. (The latter variable includes the leading period of the extension, so do not write $FILENAME.$EXTENSION.)

    Image Viewer and PDF Viewer

    This update brings with it a great new feature for Zettlr: A built-in image viewer and PDF viewer. Once you have selected in the settings that you wish to open images or PDF files in Zettlr instead of the default behavior to open it externally, Zettlr will open them in editor panes just like the editors. You can rearrange them just like you can other files, and you have some options available to inspect the files.

    For images, the viewer offers various options to zoom and fit the images so that you can view every detail of them while having other files open side-by-side. In addition, the image viewer offers four background modes to accommodate transparency and difficult-to-view colors in the images better: transparent (the default), a black background, white background, and a translucent checkerboard background.

    The PDF viewer likewise allows you to preview PDF files using Chromium's built- in PDF viewer that you may already know if you have opened PDF files in Google Chrome or Edge. Due to restrictions in how this works, however, you will have to manually "enable" such a viewer before being able to scroll it by clicking into it. Whether an iframe is interactive is indicated by a small border around the iframe.

    Note that both image and PDF viewers are just that: viewers. As Zettlr is a text app, we do not plan on implementing any ways of editing images or PDF files. To annotate your PDF files, please continue using your existing workflow.

    New Citation Parser

    This release of Zettlr ships with a fully rewritten citation parser. We have decided to do so because the existing citation parser was very coarse. It would only detect and indicate entire citation nodes, but it could not distinguish between the various parts of citations (such as prefix, citekey, and suffix). In addition, there were quite many inefficiencies in how Zettlr would parse citations.

    The new citation parser aims at fixing these issues. It now mounts individual nodes into the document for all individual parts of a citation node. Specifically, it now detects formatting characters, the @-sign, the suppress- author-flag (a hyphen preceding the @-sign), prefix, suffix, and the locator individually. This not just makes styling individual citation parts possible, but also makes all processing within Zettlr more efficient and faster. Especially in documents with a lot of citations, you should be able to observe a performance improvement.

    Lastly, we took this opportunity to align the parser more with how Pandoc Citeproc processes citations. Most notably, this includes relaxing some requirements such as having to place commas after the citekey, and support for curly brackets, which allows you more flexibility in defining citekeys (e.g., @{AuthorYear}) and locators (e.g., {pp. 23-24, 66-69}),

    If you prefer to style Zettlr using Custom CSS, you can now style the individual parts of your citations, using the following CSS classes:

    • cm-citation: The entire citation node
    • cm-citation-mark: Formatting characters ({}[];) except the @-sign and the suppress-author-flag
    • cm-citation-prefix: The citation prefix
    • cm-citation-suppress-author-flag: The suppress-author-flag
    • cm-citation-at-sign: The @-sign in front of your citekey
    • cm-citation-citekey: The actual cite key (sans surrounding curly brackets)
    • cm-citation-locator: The locator after your citekey
    • cm-citation-suffix: The citation suffix

    Modified Zettelkasten Link Workflow

    With this update, we have updated the Zettelkasten link insertion workflow. This is due to the new capabilities of Zettlr to understand link labels. To do so, we have removed the previous settings "Link with filename only" and "When linking files, add the document name …". Instead, we have added two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible."

    The new workflow applies when you autocomplete a filename, and works as follows:

    1. If "Use the file ID" is enabled, Zettlr will use a file's ID, if the file has one, and fall back to the filename only where no ID is available. If it is disabled, Zettlr will always use the filename to generate internal Wikilinks.
    2. If "Always use the file title" is enabled, Zettlr will add the file's title (YAML frontmatter title; first heading level 1; filename) as the link label. If it is disabled, Zettlr will never add a link label automatically.

    Footnote Workflow Improvements

    This update improves the footnote handling workflow a lot. Until now, Zettlr was only able to properly insert new footnotes. However, the footnote deletion process still required you to manually delete both the footnote label and its accompanying reference.

    We have now implemented a few new functions that help you manage footnotes. First, when you delete text by pressing Backspace, and you reach a footnote label, Zettlr will now select the entire footnote label instead of deleting the closing bracket of the label. When you press Backspace a second time, it will remove the entire label at once. This gives you both a visual indication that you are about to delete a footnote, and make it easier (since it requires you to press Backspace only twice, instead of at least four times).

    Note that some functionality does not apply to footnote labels that contain text other than numbers.

    GUI and Functionality

    • Feature: Full TableEditor Rewrite. The new TableEditor keeps most functionality of the previous version, with the exception of more safeguards against data loss, and more ergonomic usage.
    • Feature: Image and PDF previews. Zettlr has now two dedicated viewers that allow users to open common image types and PDF files right from within the app for preview purposes (#5501).
    • Feature: Fully rewritten citation parser (#5902).
    • Feature: Full-text (aka. global) search runs can now be cancelled via a dedicated button. You can now also trigger a new search while another search is already running.
    • Feature: Individual global search results can now be copied to the clipboard (#2070).
    • Feature: The file manager can now show and display other file types as opposed to having those only in the sidebar. Images and PDF files can be opened directly in Zettlr, while other files will be opened using the system default application. You can use the appropriate section in the advanced settings to customize this. By default, none of the new file types will be displayed in the file manager (#5501).
    • Feature: Zettlr now provides a Liquid Glass icon for macOS 26.
    • Feature: A new option has been added to allow a simple switching between a raw Markdown syntax mode and a preview mode ("WYSIWYG"), both in the settings and in the statusbar. Clicking it will toggle Markdown files between a pure syntax view, and a mode in which those items which you have selected will be pre-rendered/previewed (#4514).
    • Feature: Zettlr now ships with a brand-new onboarding wizard that helps new users tweak some central settings immediately without having to scour the preferences.
    • Feature: macOS users with an Apple Silicon chip can now access Writing Tools from context menus.
    • Feature: Allow turning off the behavior of Zettlr to automatically open files upon successful export (#5609).
    • Feature: Added a simple setting that forcefully enables Pandoc's mark- extension when exporting from Markdown if that is not already enabled. This ensures that ==highlighted== spans are properly considered in any output format.
    • Feature: Improved the calendar view in the statistics window to better convey the numbers. It now features a gradient heatmap, only considers the numbers from the visible year, and logs the numbers to spread out the distribution across the new, ten activity levels.
    • Feature: Improved the statistics chart to better help you contextualize your writing flow. It now shows you your current word count for this week, and compares it to this and last years's averages.
    • Feature: The LanguageTool integration is now more performant and allows ignoring of certain rules (#5910). Whenever you ignore a rule, it shows up in the spellchecking preferences section alongside some additional info. From this section you can re-enable it by removing it from the list of ignored rules.
    • Feature: "Hide heading characters" now properly hides the characters instead of replacing them with another element, bringing Zettlr's renderer closer to a true WYSIWYG experience. The heading level is now indicated to the left side in its own gutter element.
    • Feature: You can now show line numbers in Markdown files via a new setting (#5917).
    • Feature: Zettlr has now improved support for reference-style links. This support extends to the link context-menu (which now supports handling links from both link and link reference), the tooltips (which accurately show link previews), rendering (which accounts for link labels), to any action (such as copying or removing a link) (#5142).
    • Feature: Zettlr now supports loading BibLaTeX libraries as well (#460).
    • Feature: Zettlr now correctly displays crossref-style citations (#248).
    • Feature: You can now collapse and un-collapse the files and workspace sections in the file manager. This can be helpful if you are working with both a lot of individual files and workspaces. Your choice is remembered (#5916).
    • Feature: Extended the scope and application of vibrancy on macOS.
    • Feature: Working with footnotes is now more convenient than ever. Zettlr now has an update listener that constantly scans the document for any rogue footnotes and references (which are missing their corresponding reference or footnote), and ensures that the numbering is always correct. This means that you can delete a footnote, and be certain that Zettlr will have removed the now-dangling reference, too. The same applies if you remove a reference that you no longer need. Lastly, deleting footnotes becomes more convenient. Now, if you delete characters and reach a footnote, Zettlr will first select the entire footnote to visually indicate that you are about to delete a footnote, then a second deletion will remove the entire footnote at once.
    • Change: Zettlr now monitors your documents and will automatically remove footnotes and references without the corresponding reference or footnote. If you have any documents in which you have un-referenced footnotes, or references that are currently unused, please make sure to change this before updating.
    • Change: Snippets: The $FILENAME variable now does not contain the file extension anymore. Users who also want the extension should update their snippets to $FILENAME$EXTENSION (#4191).
    • Change: The word and character counters in the statusbar now always show both counts.
    • Change: Modified the Zettelkasten link insertion workflow. The previous settings "Link with filename only" and "When linking files, add the document name …" have been removed. Instead, there are two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible." The first new setting will always insert the detected file title (YAML frontmatter title; first heading level 1; filename) as the link label. If disabled, Zettlr will always create links without labels. The second setting controls whether Zettlr will always use filenames to link to files, or use IDs where available.
    • A11y: Zettlr now respects if you choose to reduce transparency in system settings and no longer add window vibrancy on macOS.
    • Snippets can now be nested (#5939).
    • You can now show an item in Finder/Explorer/file browser when right-clicking a document tab (#5914).
    • Fixed inline math not rendering when transforming Markdown to HTML (e.g., in footnotes).
    • The diagnostics info field in the statusbar now toggles the lint panel, instead of only opening the panel (#5847).
    • Fixed WebP images not rendering from relative paths (#5181).
    • Fixed the behavior when clicking widgets (citations, etc.) to accurately select only the widget's source text (#5682).
    • Update it-IT translations (#5831).
    • Update da-DA translations (#5868).
    • Update de-DE translations.
    • Added support for nix syntax highlighting (#5954).
    • Fixed incorrect cursor position after inserting IDs (#5846).
    • The toolbar word counter no longer wraps (#5774; #5881).
    • Fix context menu entry "Insert table" not working (#5835).
    • The keyboard shortcuts for snippets no longer require the field, thus preventing errors in EditorViews that map the corresponding shortcuts but don't have snippets installed.
    • The three-way-toggle for the file manager and global search does not wrap on Windows anymore (#5876).
    • The toolbar can now scroll left and right if the main window is too narrow (#5873; #5022).
    • Popovers (especially in the toolbar) will now properly close when clicking the associated toolbar button a second time (#5870).
    • Style improvements: linter panel dark mode (#5882); drop cursor (#5883); export, pomodoro, and tags popover (#5895); spacing in file manager tree view (#5891); global search (#5894).
    • Switched the icons for code and comments in the formatting toolbar (#5901).
    • The word counter now uses a proper segmenter that will make the word count more accurate for languages that do not use spaces to separate words (#5898).
    • Fixed the tutorial pages not correctly opening on first start.
    • Improved the macOS tray icon display.
    • Single clicks on the tray icon now activate the app (#4267).
    • Fixed footnote placing edge cases.
    • Due to updates in Apple's Human Interface Guidelines, the main process now no longer removes accelerators/keyboard shortcuts from the menus.
    • The recent documents provider now uses the OS API to return a list of recent documents. The provider is only retained for Linux at this point.
    • Improved performance for documents with many and/or large tables (#5903).
    • Fixes print functionality by completely abandoning the iframe approach and switching to the built-in Markdown-to-HTML parser.
    • Fixed the user dictionary not persisting to disk under certain conditions (#5922).
    • The toolbar update button now includes a clearly visible label indicating that an update is available, making it less likely to miss it.
    • Improved the styling and labelling of the additional attachment extensions setting in the advanced settings
    • The citation context menu now shows rendered citations instead of the raw citation keys, and utilizes macOS's sublabel feature to describe the context menu items.
    • Changed default config settings for new installations:
      • Dark mode is now preset to true if the OS reports that it uses dark colors.
      • Vibrancy on macOS is now set to true only if the user does not prefer reduced transparency.
    • Improved drag-and-drop behavior in the table of contents (#5871).
    • Improved the layout of the assets window (#5942).
    • Improved performance impact of references tab by only updating the bibliography on save, not on every keystroke (#5518).
    • Fixed images with brackets in the filename from not showing up (#3825).
    • Switched the window controls on Windows computers to the native controls. This will enable a set of additional OS-level functionality (such as hovering over the maximize-button to show a split-screen menu).
    • Fixed a bug that would not assign the correct footnote body class to footnote bodies. Now, footnotes will be rendered in a smaller font size and can be styled as a block.
    • Made the dark editor background less black, and increase contrast of the dark selection background for the Karl-Marx-Stadt theme.
    • Indentation preferences from the main settings now also apply to code editors where applicable.
    • The emphasis renderer now also hides formatting characters for footnote reference labels.
    • Images and links will now be detected more robustly (#5964).
    • Improved parsing footnotes (especially with multi-paragraph contents) (#5968).
    • Improved Markdown-to-HTML conversion (#5968).
    • Fixed image parsing for images with no ALT-text (#5963).

    Under the Hood

    • Update Electron to version 38.3.0.
    • Update Pandoc to version 3.8.
    • Added new curly rule to ESLint, enforcing curly brackets for block-statement declarations (if, for, while, etc.).
    • The enabled property of context menu items is now optional, and defaults to true.
    • EditorPanes will no longer load all documents at the same time, and instead reuse the existing MarkdownEditor component for a single document. This greatly reduces memory consumption, especially for very full tab bars, since only a single document will be actively rendered at any one time.
    • Moved the previously shared common types for the context menu in the renderer into the correct module to colocate the code. The shared types have been a remnant from a time before TypeScript supported the type keyword, and will subsequently be removed.
    • Moved the DirectedGraph class from the link provider to the stats window.
    • Switched back from electron-devtools-assembler to electron-devtools-installer; now the Vue.js devtools extension works again.
    • Style groups in form builder fields now support a label that will be rendered atop of these groups.
    • Zettlr now records and remembers the binary's build date. This information is shown in the debug info to help pinpoint from when a version is. In addition, this information is now used to disambiguate nightly versions so that both the FSAL cache will be cleared more regularly, and you get a visual indicator that you did update your nightly release.
    • The AST parser now properly detects task lists, and the Markdown-to-HTML converter appropriately handles them.
    • Improved list form controls. They now allow customizing the delete label and provide a custom "No records" message.
    • The rangeInSelection utility function now accepts an optional parameter that allows inclusion of adjacent selection ranges in calculating the result. This allows, e.g., renderers to detect whether a selection touches a node-to-be- rendered.
    • Added a loading spinner component that can be used to indicate that something is loading.
    • Context menu items now can have an action property, which is a simple function that will be called when the item is clicked. Those items do not have to have an ID (which is now an optional property). Items with IDs and without actions will still call the provided callback function.
    • The Markdown AST parser now also emits labelFrom and labelTo-properties for footnote references for easy access to the reference label.
    • If loading a window fails due to whatever reason, the corresponding error will now be shown to the user using an error dialog.
    • Aligned the math parser to the internal CodeMirror APIs (#5971).

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v4.0.0-beta...v4.0.0-beta.1

  21. 4.0.0-beta

    展開

    GitHub Release

    It's time to celebrate — the beta of Zettlr's next major release is here! This beta version is already quite stable, but we want to give it an exhaustive test-run to ensure that everything works as expected for the upcoming stable release. We have decided to perform a major version-bump, since this version already changes quite a few things as opposed to the last release that may impact some workflows. Furthermore, by performing a major release, we gain a bit more freedom to change a few other things where necessary during this beta.

    We hope that you feel confident in trying out the latest and greatest Zettlr has to offer. As always, if you encounter any bugs, please report them on GitHub so that we can make the app better for everyone.

    Before starting to use this beta-release, please carefully read the Changelog below so that you know what's coming.

    Changelog

    Full TableEditor Rewrite

    This release contains a full rewrite of the TableEditor. The old implementation of the TableEditor had many bugs and inconveniences that made working with Markdown tables barely less cumbersome than having to deal with raw Markdown tables. Users criticized volatile data handling and experienced frequent data loss. This is why we redesigned the TableEditor from the ground up. With this release, we are finally able to give the new experience to you.

    The most important improvement is that now data loss should be a thing of the past. The new TableEditor makes full use of the available features of the editor to keep the data as safe as possible. But we didn't want to stop there. Because the TableEditor hadn't received a face lift in years, we asked ourselves what else the TableEditor was missing.

    From a user perspective, we have kept the design of the TableEditor as close to the former UX as possible, while also fixing a few oddities. Specifically, the buttons of the TableEditor have been fully redesigned to be more minimalist. Also gone is the infamous "Save" button that was not able to help prevent data loss. The new TableEditor now features proper syntax highlighting so that you can more easily verify that you are authoring proper Markdown. In addition, the new TableEditor is now faster, more memory efficient, and it should be simpler to fill entire tables with data.

    Lastly, one big improvement of the new TableEditor is that you don't have to use it to be more efficient in authoring tables. Specifically, we decided to implement all functionality fully keyboard-oriented. This means that for any modification you may want to make there is now a shortcut. Adding and removing rows and columns; clearing data from rows, columns, or the entire table; aligning column text left, right, or center; swapping rows or columns; etc. Anything is now possible either with the new built-in context menu, or a quick keyboard shortcut.

    There is only one thing we stopped to support: grid tables. Given that their structure can be much more difficult to parse we wanted to err on the side of caution. However, some keyboard shortcuts such as navigating between cells will still work with grid tables. Since users will most of the time only edit simple tables, we believe this to be an acceptable compromise — while not completely ruling out supporting grid tables, especially since Pandoc has started heavily investing in an improvement of their grid table support.

    In any case, we hope that the new TableEditor will finally fix the issues you experienced over the past years — and we would like to apologize that it took us so long to fix all of these issues at once!

    Changes to the snippet $FILENAME variable

    In this update, we have implemented a change in which the $FILENAME variable no longer includes the filename extension. This means that, while $FILENAME has in the past resolved to my-file.md, it will now only include my-file.

    If you rely on the $FILENAME-variable in any of your snippets, please make sure to update it by adding the variable $EXTENSION behind it. In other words, everywhere you need only the filename without its extension, you can keep $FILENAME, but wherever you need both the file name and its file extension, please use $FILENAME$EXTENSION. (The latter variable includes the leading period of the extension, so do not write $FILENAME.$EXTENSION.)

    Image Viewer and PDF Viewer

    This update brings with it a great new feature for Zettlr: A built-in image viewer and PDF viewer. Once you have selected in the settings that you wish to open images or PDF files in Zettlr instead of the default behavior to open it externally, Zettlr will open them in editor panes just like the editors. You can rearrange them just like you can other files, and you have some options available to inspect the files.

    For images, the viewer offers various options to zoom and fit the images so that you can view every detail of them while having other files open side-by-side. In addition, the image viewer offers four background modes to accommodate transparency and difficult-to-view colors in the images better: transparent (the default), a black background, white background, and a translucent checkerboard background.

    The PDF viewer likewise allows you to preview PDF files using Chromium's built- in PDF viewer that you may already know if you have opened PDF files in Google Chrome or Edge. Due to restrictions in how this works, however, you will have to manually "enable" such a viewer before being able to scroll it by clicking into it. Whether an iframe is interactive is indicated by a small border around the iframe.

    Note that both image and PDF viewers are just that: viewers. As Zettlr is a text app, we do not plan on implementing any ways of editing images or PDF files. To annotate your PDF files, please continue using your existing workflow.

    New Citation Parser

    This release of Zettlr ships with a fully rewritten citation parser. We have decided to do so because the existing citation parser was very coarse. It would only detect and indicate entire citation nodes, but it could not distinguish between the various parts of citations (such as prefix, citekey, and suffix). In addition, there were quite many inefficiencies in how Zettlr would parse citations.

    The new citation parser aims at fixing these issues. It now mounts individual nodes into the document for all individual parts of a citation node. Specifically, it now detects formatting characters, the @-sign, the suppress- author-flag (a hyphen preceding the @-sign), prefix, suffix, and the locator individually. This not just makes styling individual citation parts possible, but also makes all processing within Zettlr more efficient and faster. Especially in documents with a lot of citations, you should be able to observe a performance improvement.

    Lastly, we took this opportunity to align the parser more with how Pandoc Citeproc processes citations. Most notably, this includes relaxing some requirements such as having to place commas after the citekey, and support for curly brackets, which allows you more flexibility in defining citekeys (e.g., @{AuthorYear}) and locators (e.g., {pp. 23-24, 66-69}),

    If you prefer to style Zettlr using Custom CSS, you can now style the individual parts of your citations, using the following CSS classes:

    • cm-citation: The entire citation node
    • cm-citation-mark: Formatting characters ({}[];) except the @-sign and the suppress-author-flag
    • cm-citation-prefix: The citation prefix
    • cm-citation-suppress-author-flag: The suppress-author-flag
    • cm-citation-at-sign: The @-sign in front of your citekey
    • cm-citation-citekey: The actual cite key (sans surrounding curly brackets)
    • cm-citation-locator: The locator after your citekey
    • cm-citation-suffix: The citation suffix

    Modified Zettelkasten Link Workflow

    With this update, we have updated the Zettelkasten link insertion workflow. This is due to the new capabilities of Zettlr to understand link labels. To do so, we have removed the previous settings "Link with filename only" and "When linking files, add the document name …". Instead, we have added two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible."

    The new workflow applies when you autocomplete a filename, and works as follows:

    1. If "Use the file ID" is enabled, Zettlr will use a file's ID, if the file has one, and fall back to the filename only where no ID is available. If it is disabled, Zettlr will always use the filename to generate internal Wikilinks.
    2. If "Always use the file title" is enabled, Zettlr will add the file's title (YAML frontmatter title; first heading level 1; filename) as the link label. If it is disabled, Zettlr will never add a link label automatically.

    GUI and Functionality

    • Feature: Full TableEditor Rewrite. The new TableEditor keeps most functionality of the previous version, with the exception of more safeguards against data loss, and more ergonomic usage.
    • Feature: Image and PDF previews. Zettlr has now two dedicated viewers that allow users to open common image types and PDF files right from within the app for preview purposes (#5501).
    • Feature: Fully rewritten citation parser (#5902).
    • Feature: Full-text (aka. global) search runs can now be cancelled via a dedicated button. You can now also trigger a new search while another search is already running.
    • Feature: Individual global search results can now be copied to the clipboard (#2070).
    • Feature: The file manager can now show and display other file types as opposed to having those only in the sidebar. Images and PDF files can be opened directly in Zettlr, while other files will be opened using the system default application. You can use the appropriate section in the advanced settings to customize this. By default, none of the new file types will be displayed in the file manager (#5501).
    • Feature: Zettlr now provides a Liquid Glass icon for macOS 26.
    • Feature: A new option has been added to allow a simple switching between a raw Markdown syntax mode and a preview mode ("WYSIWYG"), both in the settings and in the statusbar. Clicking it will toggle Markdown files between a pure syntax view, and a mode in which those items which you have selected will be pre-rendered/previewed (#4514).
    • Feature: Zettlr now ships with a brand-new onboarding wizard that helps new users tweak some central settings immediately without having to scour the preferences.
    • Feature: macOS users with an Apple Silicon chip can now access Writing Tools from context menus.
    • Feature: Allow turning off the behavior of Zettlr to automatically open files upon successful export (#5609).
    • Feature: Added a simple setting that forcefully enables Pandoc's mark- extension when exporting from Markdown if that is not already enabled. This ensures that ==highlighted== spans are properly considered in any output format.
    • Feature: Improved the calendar view in the statistics window to better convey the numbers. It now features a gradient heatmap, only considers the numbers from the visible year, and logs the numbers to spread out the distribution across the new, ten activity levels.
    • Feature: Improved the statistics chart to better help you contextualize your writing flow. It now shows you your current word count for this week, and compares it to this and last years's averages.
    • Feature: The LanguageTool integration is now more performant and allows ignoring of certain rules (#5910). Whenever you ignore a rule, it shows up in the spellchecking preferences section alongside some additional info. From this section you can re-enable it by removing it from the list of ignored rules.
    • Feature: "Hide heading characters" now properly hides the characters instead of replacing them with another element, bringing Zettlr's renderer closer to a true WYSIWYG experience. The heading level is now indicated to the left side in its own gutter element.
    • Feature: You can now show line numbers in Markdown files via a new setting (#5917).
    • Feature: Zettlr has now improved support for reference-style links. This support extends to the link context-menu (which now supports handling links from both link and link reference), the tooltips (which accurately show link previews), rendering (which accounts for link labels), to any action (such as copying or removing a link) (#5142).
    • Feature: Zettlr now supports loading BibLaTeX libraries as well (#460).
    • Feature: Zettlr now correctly displays crossref-style citations (#248).
    • Feature: You can now collapse and un-collapse the files and workspace sections in the file manager. This can be helpful if you are working with both a lot of individual files and workspaces. Your choice is remembered (#5916).
    • Change: Snippets: The $FILENAME variable now does not contain the file extension anymore. Users who also want the extension should update their snippets to $FILENAME$EXTENSION (#4191).
    • Change: The word and character counters in the statusbar now always show both counts.
    • Change: Modified the Zettelkasten link insertion workflow. The previous settings "Link with filename only" and "When linking files, add the document name …" have been removed. Instead, there are two new settings, "Always use the file title as label for internal links" and "Use the file ID as link target if possible." The first new setting will always insert the detected file title (YAML frontmatter title; first heading level 1; filename) as the link label. If disabled, Zettlr will always create links without labels. The second setting controls whether Zettlr will always use filenames to link to files, or use IDs where available.
    • A11y: Zettlr now respects if you choose to reduce transparency in system settings and no longer add window vibrancy on macOS.
    • You can now show an item in Finder/Explorer/file browser when right-clicking a document tab (#5914).
    • Fixed inline math not rendering when transforming Markdown to HTML (e.g., in footnotes).
    • The diagnostics info field in the statusbar now toggles the lint panel, instead of only opening the panel (#5847).
    • Fixed WebP images not rendering from relative paths (#5181).
    • Fixed the behavior when clicking widgets (citations, etc.) to accurately select only the widget's source text (#5682).
    • Update it-IT translations (#5831).
    • Update da-DA translations (#5868).
    • Update de-DE translations.
    • Fixed incorrect cursor position after inserting IDs (#5846).
    • The toolbar word counter no longer wraps (#5774; #5881).
    • Fix context menu entry "Insert table" not working (#5835).
    • The keyboard shortcuts for snippets no longer require the field, thus preventing errors in EditorViews that map the corresponding shortcuts but don't have snippets installed.
    • The three-way-toggle for the file manager and global search does not wrap on Windows anymore (#5876).
    • The toolbar can now scroll left and right if the main window is too narrow (#5873; #5022).
    • Popovers (especially in the toolbar) will now properly close when clicking the associated toolbar button a second time (#5870).
    • Style improvements: linter panel dark mode (#5882); drop cursor (#5883); export, pomodoro, and tags popover (#5895); spacing in file manager tree view (#5891); global search (#5894).
    • Switched the icons for code and comments in the formatting toolbar (#5901).
    • The word counter now uses a proper segmenter that will make the word count more accurate for languages that do not use spaces to separate words (#5898).
    • Fixed the tutorial pages not correctly opening on first start.
    • Improved the macOS tray icon display.
    • Single clicks on the tray icon now activate the app (#4267).
    • Fixed footnote placing edge cases.
    • Due to updates in Apple's Human Interface Guidelines, the main process now no longer removes accelerators/keyboard shortcuts from the menus.
    • The recent documents provider now uses the OS API to return a list of recent documents. The provider is only retained for Linux at this point.
    • Improved performance for documents with many and/or large tables (#5903).
    • Fixes print functionality by completely abandoning the iframe approach and switching to the built-in Markdown-to-HTML parser.
    • Fixed the user dictionary not persisting to disk under certain conditions (#5922).
    • The toolbar update button now includes a clearly visible label indicating that an update is available, making it less likely to miss it.
    • Improved the styling and labelling of the additional attachment extensions setting in the advanced settings
    • The citation context menu now shows rendered citations instead of the raw citation keys, and utilizes macOS's sublabel feature to describe the context menu items.

    Under the Hood

    • Update Electron to version 38.2.0.
    • Update Pandoc to version 3.8.
    • Added new curly rule to ESLint, enforcing curly brackets for block-statement declarations (if, for, while, etc.).
    • The enabled property of context menu items is now optional, and defaults to true.
    • EditorPanes will no longer load all documents at the same time, and instead reuse the existing MarkdownEditor component for a single document. This greatly reduces memory consumption, especially for very full tab bars, since only a single document will be actively rendered at any one time.
    • Moved the previously shared common types for the context menu in the renderer into the correct module to colocate the code. The shared types have been a remnant from a time before TypeScript supported the type keyword, and will subsequently be removed.
    • Moved the DirectedGraph class from the link provider to the stats window.
    • Switched back from electron-devtools-assembler to electron-devtools-installer; now the Vue.js devtools extension works again.
    • Style groups in form builder fields now support a label that will be rendered atop of these groups.
    • Zettlr now records and remembers the binary's build date. This information is shown in the debug info to help pinpoint from when a version is. In addition, this information is now used to disambiguate nightly versions so that both the FSAL cache will be cleared more regularly, and you get a visual indicator that you did update your nightly release.
    • The AST parser now properly detects task lists, and the Markdown-to-HTML converter appropriately handles them.
    • Improved list form controls. They now allow customizing the delete label and provide a custom "No records" message.
    • The rangeInSelection utility function now accepts an optional parameter that allows inclusion of adjacent selection ranges in calculating the result. This allows, e.g., renderers to detect whether a selection touches a node-to-be- rendered.

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v3.6.0...v4.0.0-beta

  22. 3.6.0

    展開

    GitHub Release Homebrewへの登録

    a11y/Dark Mode fixes | Text Transformations | Bug Fixes and Performance Improvements

    We are happy to present a new update to Zettlr that includes a few nifty new features! Most notably, this update introduces a series of text transformations that you can use to modify any text inside Zettlr. These transformations allow you to, e.g., capitalize text to sentence or title case, fix errors that often happen when copying from PDF files, or change the text to conform to certain typographical styles. More transformations are to come in the future, but we believe that this is a great start to improve your workflow.

    A second section in which we were active for this release concerns the theme. First, we have fixed an annoying bug that would never remember your dark mode setting on platforms other than macOS. And second, we have fixed an accessibility issue that would make Zettlr flicker white whenever opening a new window while using dark mode.

    Finally, this update includes some additional bug fixes and performance improvements, and updates to the framework. For all information, as always, please refer to the complete changelog below.

    Do you enjoy Zettlr? Consider donating to help us pay for the development costs. You can donate monthly on Patreon or once via PayPal. Additionally, you can sponsor Hendrik Erz on GitHub or send a tip on Ko-Fi. Thanks for your support!

    Changelog

    Text Transformations

    Zettlr now features a set of several text transformation commands in the editor. Using these commands, you can transform various pieces of text in the editor using several strategies aimed at working with both regular text (which you can, e.g., transform between sentence or title case) and corrupted text (from which you can remove control characters, unnecessary line breaks, and clean up quotation marks). In total, Zettlr now ships with 13 such transform commands, but many more are possible.

    To utilize these transformations, simply select the text you wish to transform, open the context menu on it, and select the corresponding transformation from the context menu.

    The available transforms as of now are:

    • Zap gremlins: Removes unwanted control characters (such as form feeds, vertical tabs, and others), which sometimes end up in recognized PDF text.
    • Strip duplicate spaces: Removes any superfluous spaces.
    • Italics to quotes: Turns italic markers (e.g., *text*) into quotes ("text").
    • Quotes to italics: Turns quotation marks (e.g., "text") into italic markers (*text*).
    • Remove line breaks: Removes superfluous linebreaks while retaining any paragraphs (separated by two consecutive linebreaks).
    • Straighten quotes: Turns smart, or "magic quotes" into regular quotes.
    • Ensure double quotes: Turns any type of quotation (which includes backticks, since those sometimes appear in text copied from PDF files!) into regular double quotes.
    • Double quotes to single: Turns any straight double quotes to single quotes.
    • Single quotes to double: Turns single quotes into double quotes.
    • Emdash — Add spaces around: Ensures that all em-dashes (—) in the text are surrounded by spaces.
    • Emdash — Remove spaces around: Ensures that no em-dashes (—) in the text are surrounded by spaces.
    • To sentence case: Turns the selected text to sentence case.
    • To title case: Turns The Selected Text To Title Case.

    GUI and Functionality

    • Feature: Zettlr now has text transformations. With these, you can change selected pieces of text using a quick access command menu (#5701). Special thanks to @richdouglasevans for implementing this.
    • Change: Zettlr will no longer parse Markdown-like files that exceed ca. 10 MB in size. After some testing, we have determined that 10 MB seems to be a balanced trade-off between parsing as many files as possible and preventing the app to crash (especially on slower computers). Note that this only affects the caching of certain pieces of metadata, such as title, heading level 1, and ID. You will still be able to open and edit the file. For more context, see issue #5801.
    • Fixed a bug that would prevent the creation of new directories via the shortcut (#5769).
    • Fixed a bug that prevented retention of user-determined dark-mode setting on platforms other than macOS during application restarts (#570).
    • Fixed the list of related files disappearing when switching sidebar tabs (#5795).
    • Windows will now receive black as their background color on Windows and Linux if dark mode is active, preventing white flicker during window opening before the UI is ready (#5809).

    Under the Hood

    • Bump Pandoc to version 3.7.0.2.
    • Bump Electron to version 37.2.0.
    • The primary app service container can now be retrieved using the factory method getAppServiceContainer. This makes it possible to reduce a few recursive dependencies on passing the service container down and will help disentangle the main process services in the future.

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v3.5.1...v3.6.0

  23. 3.5.1

    展開

    GitHub Release Homebrewへの登録

    Bug fixes

    This is a small update that fixes one especially annoying bug that users have reported since the last version. In addition, it offers an entirely new app translation, and another minor bug fix.

    Do you enjoy Zettlr? Consider donating to help us pay for the development costs. You can donate monthly on Patreon or once via PayPal. Additionally, you can sponsor Hendrik Erz on GitHub or send a tip on Ko-Fi. Thanks for your support!

    Changelog

    GUI and Functionality

    • Fixed a bug that would make using certain keys such as Enter, Backspace, or quotes in code editors in the Assets Manager unusable (#5797).
    • Added Kazakh language (#5771).
    • Improve fenced code block language detection when using fenced code attributes. Now, using the recommended Pandoc-style syntax for attribute strings will correctly match the language in the info string to one of the available identifiers.

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v3.5.0...v3.5.1

  24. 3.5.0

    展開

    GitHub Release Homebrewへの登録

    Bug Fixes and Performance Improvements | Keyboard Shortcuts

    Over the past weeks, we have managed to include a few improvements left and right, which mostly involve bug fixes and minor tweaks. More notably, we have performed some work on the keyboard shortcut situation. First, we have unified and harmonized the keyboard shortcuts available to you by using the same keymap across all editors that you can see across the app (including in the assets manager), which hopefully reduces friction for those who frequently adapt profiles or snippets. We have also added a few new keyboard shortcuts and fixed a few conflicts. Other than that, we are happy to report that, thanks to community efforts, the French and Czech translations have been updated.

    Do you enjoy Zettlr? Consider donating to help us pay for the development costs. You can donate monthly on Patreon or once via PayPal. Additionally, you can sponsor Hendrik Erz on GitHub or send a tip on Ko-Fi. Thanks for your support!

    Changelog

    GUI and Functionality

    • Feature: The code editors (in the assets manager and elsewhere) now share the same keymap as the main editor.
    • Feature: The image renderer now acknowledges and respects the presence of a Pandoc link attributes string behind an image to scale images using custom sizes (#1328).
    • Change: Removed some optional properties from the default profiles. If you want to switch to the new defaults, delete those files from the assets manager or rename your existing ones. Specifically, removed top-level-division, whose meaning has changed which started to produce empty first pages during Word exports (#5645).
    • Fixed a long-standing bug that would not clear the modification marker on both file tabs (#5747) and the macOS window indicator (#4724) when a modified file was closed without saving changes. Acknowledges PR #5747 which is superseded by this change.
    • Added a keyboard shortcut for highlighting text: Ctrl-Shift-H (#4668).
    • The Mermaid diagram renderer is now more flexible. It now renders any Mermaid diagram in any type of valid fenced code block with both allowed variations of providing the info string: the plain mermaid and the Pandoc-attribute style {.mermaid} class (#5734).
    • Fixed a keymap conflict that would cause Enter to not accept autocomplete suggestions in some contexts such as Markdown syntax elements (#5646).
    • Improved the math, mermaid, image, and heading renderers so that they perform additional checks before actually updating their respective rendered elements. This should reduce the amount of flickering and unintentional scrolling especially in longer documents with many of such elements.
    • Enable the CodeMirror folding keymap which lets you fold and unfold code, such as headings, with keyboard shortcuts instead of using the arrows to the left of the editor (#857). The shortcuts are: Ctrl-Shift-[ (Windows/Linux) or Cmd-Alt-[ (macOS) for folding code, Ctrl-Shift-] or Cmd-Alt-] for unfolding, Ctrl-Alt-[ for folding all, and Ctrl-Alt-] for unfolding all.
    • Update fr-FR translation (#5738).
    • Update cs-CZ translation (#5775).

    Under the Hood

    • Cache ESLint results to improve subsequent linter run speed (#5706).
    • Spawn shell when starting test GUI on Windows (#5685).
    • Markdown commands now check whether the provided target EditorView is parsed using a Markdown parser before running.
    • Move all keymaps into a single defaultKeymap.
    • Assume ** as default bold and * as default italic formatting for Markdown commands if the config field is not present.
    • Added a pandocLinkParser for properly parsing pandoc link attribute strings.

    New Contributors

    Full Changelog: https://github.com/Zettlr/Zettlr/compare/v3.4.4...v3.5.0