Skip to content

[SuperEditor] - Attributions not placed according to markdown standard when serializing document #2424

@edhom

Description

@edhom

The AttributedTextMarkdownSerializer places markdown formatting symbols according to the offset of attribution markers. This results in invalid markdown, as the markdown standard doesn't allow leading/trailing whitespaces.

I'm unsure whether the correct fix is in the AttributedTextMarkdownSerializer, or instead to update the attribution markers already while editing to exclude whitespace.

To Reproduce

Screen.Recording.2024-11-27.at.09.23.20.mov

Actual behavior
Super** editor**

Expected behavior
Super editor

Metadata

Metadata

Assignees

No one assigned

    Labels

    type_bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions