Skip to content

Indentation isn't rendering for project steps in the embedded editor #1209

@patch0

Description

@patch0

Describe the bug

See slack thread

Step 2 on this project - https://projects.raspberrypi.org/en/projects/python-wild-dot-the-bug/editor
The code renders as attached
The first line (9) should be indented.

It is indented in the markdown - https://raw.githubusercontent.com/raspberrypilearning/python-wild-dot-the-bug/refs/heads/master/en/step_2.md
It is correctly indented in the non-integrated version of the project - https://projects.raspberrypi.org/en/projects/python-wild-dot-the-bug/1

Expected behavior

Code should be indented properly

Screenshots

Image

Additional context

per the thread, it's looks like whitespace is being stripped when it shouldn't be. In the projects-ui Prism is configured to use the normalize-whitespace plugin such that it doesn't strip leading blank spaces.

In editor-ui this plugin doesn't seem to be being used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions