FOSS Applications

Marknote 1.7 rewrites its editor as a block-based Markdown editor with Mermaid rendering

Key Takeaway

Marknote 1.7 replaces its QTextDocument-based rich text editor with a custom block editor built on KDE's md4qt Markdown parser, adding nesting, tables, syntax highlighting and Mermaid diagrams.

Summary

The KDE Marknote team has released Marknote 1.7, described as possibly its largest update so far, with the headline change being a complete rewrite of the note editor. GSoC contributor Prayag Jain replaced the previous default QTextDocument approach with a block editor in which every element is its own block, giving the application full control over rendering and allowing notes to be rearranged quickly. Markdown parsing now relies on md4qt, KDE's own Markdown library developed by Igor Mironchik, and a syntax highlighter formats text while a block is being edited.

The release also brings practical editing improvements: intuitive controls for adding and editing table rows and columns with a highlighted header row, full Markdown nesting (lists in quotes, code in quotes, code in lists), themed quotes and native checkboxes, and code blocks with syntax highlighting for most languages plus a copy button. Divyanshu Chandra added Mermaid diagram rendering through the Pele engine, covering flowcharts, sequence diagrams, class diagrams, pie charts and more, respecting the user's theme and font settings. The UI was polished too, with a redesigned table of contents that can be hovered or pinned and resized, fully working subfolders with drag and drop, and quick note style settings. Marknote 1.7 is available on Linux from Flathub.

What changes in Marknote 1.7's editor

  • Block editor architecture: The editor no longer uses a default QTextDocument; each note element is an independent block, which enables fast reordering and gives the application full control over how notes are rendered.
  • Markdown parsing with md4qt: Parsing is handled by KDE's own md4qt Markdown library, written by Igor Mironchik, replacing the previous parsing path and supporting full nesting combinations such as lists inside quotes and code inside lists.
  • Code blocks and Mermaid: Code blocks gain syntax highlighting for most languages and a quick copy action; setting a block's language to mermaid, or using the / shortcut menu, renders diagrams via the Pele engine, including flowcharts, sequence diagrams, class diagrams and pie charts.
  • Tables and UI controls: Tables now have controls for adding and editing rows and columns, a highlighted header row, and a fix for getting stuck when a table is the last block; the table of contents can be hovered, pinned and resized, and subfolders support drag and drop.
  • Bug fixes: Notes in subfolders are reachable from the command bar, oversized images in the editor are corrected, crashes when moving notes are fixed, renaming the open note no longer duplicates it, and rapid notebook switching no longer risks overwriting notes.

Why it matters

Marknote 1.7 shows KDE's office stack increasingly building on shared in-house components such as the md4qt Markdown parser rather than generic Qt text widgets, which benefits other KDE applications that need Markdown handling. The addition of Mermaid rendering and block-based editing brings a native KDE note-taking tool closer to the feature set of web-based note apps, giving Linux desktop users a Flathub-installable option that respects system themes and fonts. For contributors, the release is also a demonstration of how GSoC work can land as a substantial architectural rewrite in a shipped KDE application.

Original reference: blogs.kde.org →