TryGhost/Ghost

Formatting within inline code markup breaks markdown "undo"

Closed this issue · 2 comments

Issue Summary

When an inline code markup has additional formatting applied, pressing Backspace at the end of the markup only removes code markup back to the end of the last markup.

code-markups

To Reproduce

  1. See screencast above

Technical details:

  • Ghost Version: 2.21.0
  • Browser/OS: Chrome/macOS

Note: This only occurs if the code markup is the first markup within a section.

Similarly, pressing Backspace whilst the cursor is at the beginning of the first code markup in the section triggers the de-expansion rather than appending the section to the previous section.

code-markups-2

The initial issue is an upstream bug in mobiledoc-kit. Issue opened here bustle/mobiledoc-kit#676