Panoptes-Front-End icon indicating copy to clipboard operation
Panoptes-Front-End copied to clipboard

Code indents don't appear in Markdown on Talk

Open vrooje opened this issue 1 year ago • 3 comments

Expected behavior

If I write text within the code environment in Markdown on Talk,
    the indents should be
        preserved

Current behavior

When composing a Talk post, if I put in some code: Screenshot 2023-06-30 at 13 26 26

and then click the preview button, the code text is rendered with indents preserved. Screenshot 2023-06-30 at 13 26 50

However, once I click Submit and the post is created, the indents are not preserved, Screenshot 2023-06-30 at 13 27 10

but the indents are still there in the text of the post when I go to edit it. Screenshot 2023-06-30 at 13 27 53

It doesn't seem to matter whether the indents are spaces or a tab character.

Steps to replicate

Try putting in some indented text into a Talk post.

Additional information

  • Operating system: Mac OS X Monterey
  • Browser: Chrome and Safari; I tried both

vrooje avatar Jun 30 '23 12:06 vrooje