Skip to content

Quoting a codeblock adds spurious backslashes into markdown characters #7324

@ara4n

Description

@ara4n

This is very similar to #4809 (and thus entangled with #4674) but not necessarily the same.

If you are in MD mode in Slate and try to quote a message with a code block, then any MD content in the codeblock gets escaped with a backslash, which then leaks into the final message. We should not be escaping content in code blocks.

Presumably we can just fix this in the MessageComposer code by ensuring that the quote code only applies MD escaping to things which aren't in code blocks - and now that Slate gives us a nice parse tree for finding code blocks, this should be easy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1S-MajorSeverely degrades major functionality or product features, with no satisfactory workaroundT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions