You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🪲 pri/majorBugs will affect your normal use of Mark Text, causing you unwilling or unable to continue using MT🐛 bugSomething isn't working🔭 area/editor
After an accidental "undo", the "redo" action is not available.
Reacted by Chris Sauer, Marius Donci, Hamza Khuswan, Florian Vogt, Balázs Orbán, Rasmus Malver, Christian Kogler, Vojtěch Křižan, YalandHong and Joseph Hale, MS SE
Unfortunately, i'm having the same problem. I pressed Ctrl+Z, which undid about half an hour's worth of typing, and now 'redo' does not work (neither the menu entry nor Ctrl+Shift+Z).
Thank you for the report. The undo/redo system was completely rewritten as part of the migration to the new @muyajs/core editor engine. The new history module (packages/muya/src/history/index.ts) uses OT-based (ot-json1) undo/redo: when undo or redo runs it sets an _ignoreChange guard before applying the inverted operation, so the json-change listener cannot accidentally clear the redo stack mid-execution. The structural flaw in the old engine — where a re-render of markdown syntax characters could call push() and truncate forward history — no longer exists.
If you can reproduce this issue with the current build (0.17+ using the new engine), please reopen with the exact steps and MarkText version. Otherwise we are closing this as resolved by the engine migration.
🪲 pri/majorBugs will affect your normal use of Mark Text, causing you unwilling or unable to continue using MT🐛 bugSomething isn't working🔭 area/editor
Activity
liangkang1436 commentedon Nov 30, 2020
i found “redo” doesn't work only when redo the text contain MarkDown syntax character, it works well to redo plain text
hamza512b commentedon Dec 1, 2020
I just downloaded Marktext, same issue here.
rohgar commentedon Dec 19, 2020
Same here.
dafadllyn commentedon Sep 7, 2025
Unfortunately, i'm having the same problem. I pressed Ctrl+Z, which undid about half an hour's worth of typing, and now 'redo' does not work (neither the menu entry nor Ctrl+Shift+Z).
Jocs commentedon Jun 23, 2026
Thank you for the report. The undo/redo system was completely rewritten as part of the migration to the new
@muyajs/coreeditor engine. The new history module (packages/muya/src/history/index.ts) uses OT-based (ot-json1) undo/redo: when undo or redo runs it sets an_ignoreChangeguard before applying the inverted operation, so thejson-changelistener cannot accidentally clear the redo stack mid-execution. The structural flaw in the old engine — where a re-render of markdown syntax characters could callpush()and truncate forward history — no longer exists.If you can reproduce this issue with the current build (0.17+ using the new engine), please reopen with the exact steps and MarkText version. Otherwise we are closing this as resolved by the engine migration.