Skip to content

Whitespace in inline markdown code elements should not be collapsed #6051

Closed
matrix-org/matrix-react-sdk
#7328
@cmcaine

Description

@cmcaine

Description

White space in code blocks sent in markdown mode should not be collapsed.

Steps to reproduce

  • Send a message: `1 2 3 4` with a varying amount of whitespace between each number
  • Observe that whitespace is collapsed (as on github).

Whitespace is preserved in non-inline code blocks:

1  2   3    4

Whitespace is significant in code elements. Please don't strip it.

View source shows the whitespace, so it's presumably being removed by riot's js.

Version information

  • Platform: web (in-browser)

For the web app:

  • Browser: Firefox 59
  • OS: Arch Linux
  • URL: riot.im/app

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2S-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