Skip to content

Text editor changes list structure of some markdown documents on save #3622

Open

Description

@JammingBen

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

The markdown round trip of the text editor still changes these constructs. Follow-up to #3583.

Reproduction Steps

Open each file in the text editor, save, reload.

  1. \--- (escaped thematic break)
  2. - a\n\n* b (two lists with different bullet markers)
  3. 1. a\n\n1) b (two ordered lists with different delimiters)
  4. 1. Step\n - detail\n2. Step two\n 1. sub (content under ordered items indented with 2 spaces, as saved by OpenCloud v7.x)
  5. a. one\nb. two\n\nA. one\nB. two (letter or roman lists of different types, also a. one\n\ni. one)

Expected Outcome

  1. A paragraph with the text ---.
  2. and 3. Two separate lists, also after saving.
  3. The nested lists stay inside their list items.
  4. Two separate lists that keep their type.

Actual Outcome

  1. Loads as a paragraph \ followed by a horizontal rule. A paragraph --- typed in the editor turns into a horizontal rule after saving.
  2. and 3. Both lists are saved with the same marker (- a\n\n- b, 1. a\n\n1. b) and merge into one list on the next load.
  3. Since fix(editor): keep markdown lists and paragraphs stable across roundtrips #3614 the nested content is moved out of the list. The bullets become a top-level list and the ordered sub item continues the parent list: 1. Step\n\n- detail\n\n2. Step two\n3. sub. CommonMark requires 3 spaces here, but earlier versions of the editor (tiptap < 3.31) saved 2.
  4. Both lists are merged into one list of the first type on load and saved renumbered: a. one\nb. two\nc. one\nd. two.

Activity

  1. self-assigned this
    on Oct 8, 2026
  2. added
    Priority:p2-high
    and removed
    Priority:p3-medium
    on Oct 13, 2026
  3. moved this from Prio <= 3 to Prio 2 in OpenCloud Team Boardon Oct 13, 2026
  4. changed the title [-]Text editor changes escaped thematic breaks and merges adjacent lists in markdown[/-] [+]Text editor changes list structure of some markdown documents on save[/+] on Oct 13, 2026
  5. JammingBen commented on Oct 13, 2026

    @JammingBen
    MemberAuthor

    Point 1. has been tackled via #3765.

    The remaining issues only alter formatting, not content. Hence degrading to p3.

  6. moved this from Prio 2 to Prio <= 3 in OpenCloud Team Boardon Oct 13, 2026
  7. added
    Priority:p3-medium
    and removed
    Priority:p2-high
    on Oct 13, 2026
  8. removed their assignment
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions