Whitespace trimming breaks Markdown code block indentation

10. lokakuuta 2017 klo 18.41
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Markdown, Wekan

Impacted version: 0.49

Server Setup Information:

  • Operating System: Ubuntu 16.04
  • Deployment Method: snap
  • ROOT_URL environment variable (Is there a subfolder?): https://my-domain.com/kan (yes)

Steps to reproduce:

  1. Create a card
  2. Enter a description which consists entirely of a (markdown-styled) code block, i.e. indented with 4 spaces:
     first line
     second line
  3. Save the description

What happens:
The description is plain, unstylized text.

What I expect to happen:
For the description to be rendered as a code block.

How to work around this:
I have to enter at least one non-whitespace character followed by at least two newlines before entering the indented code block. Urgh :(

Vastaa viestiin sen kontekstissa (Github)