{"id":5324,"date":"2017-10-10T18:41:07","date_gmt":"2017-10-10T15:41:07","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5324"},"modified":"2017-10-10T18:41:07","modified_gmt":"2017-10-10T15:41:07","slug":"whitespace-trimming-breaks-markdown-code-block-indentation","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2017\/10\/10\/whitespace-trimming-breaks-markdown-code-block-indentation\/","title":{"rendered":"Whitespace trimming breaks Markdown code block indentation"},"content":{"rendered":"<p><strong>Impacted version<\/strong>: 0.49<\/p>\n<p><strong>Server Setup Information<\/strong>:<\/p>\n<ul>\n<li>Operating System: Ubuntu 16.04<\/li>\n<li>Deployment Method: snap<\/li>\n<li>ROOT_URL environment variable (Is there a subfolder?):\u00a0<a href=\"https:\/\/my-domain.com\/kan\">https:\/\/my-domain.com\/kan<\/a>\u00a0(yes)<\/li>\n<\/ul>\n<p><strong>Steps to reproduce<\/strong>:<\/p>\n<ol>\n<li>Create a card<\/li>\n<li>Enter a description which consists entirely of a (markdown-styled) code block, i.e. indented with 4 spaces:\n<pre><code> first line\r\n second line\r\n<\/code><\/pre>\n<\/li>\n<li>Save the description<\/li>\n<\/ol>\n<p><strong>What happens:<\/strong><br \/>\nThe description is plain, unstylized text.<\/p>\n<p><strong>What I expect to happen:<\/strong><br \/>\nFor the description to be rendered as a code block.<\/p>\n<p><strong>How to work around this:<\/strong><br \/>\nI have to enter at least one non-whitespace character followed by at least two newlines before entering the indented code block. Urgh :(<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have to enter at least one non-whitespace character followed by at least two newlines before entering the indented code block.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14046,14042],"class_list":["post-5324","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-markdown","tag-wekan","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5324"}],"version-history":[{"count":4,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5324\/revisions"}],"predecessor-version":[{"id":5333,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5324\/revisions\/5333"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}