Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown code blocks lose carriage returns when edited via CMS #181

Closed
fool opened this issue Dec 2, 2016 · 0 comments
Closed

Markdown code blocks lose carriage returns when edited via CMS #181

fool opened this issue Dec 2, 2016 · 0 comments

Comments

@fool
Copy link

fool commented Dec 2, 2016

- Do you want to request a feature or report a bug?

bug

- What is the current behavior?

when viewing markdown in the CMS, the rendered version of code blocks seems to collapse all whitespace to a single space, be it carriage return, tab, or spaces.

- If the current behavior is a bug, please provide the steps to reproduce.

you can demonstrate without saving anything. view a post in the CMS:

https://www.netlify.com/admin/#/collections/blog/entries/2015-10-1-a-step-by-step-guide-middleman-on-netlify

..which is rendered properly in its current form:

https://www.netlify.com/blog/2015/10/01/a-step-by-step-guide-middleman-on-netlify/

The editor shows and saves the text correctly:

content_manager

...but the rendered version loses that spacing:

content_manager

(both shots are from the CMS, edit and preview windows that are side by side during editing)

- What is the expected behavior?

spacing is preserved.

- Please mention your node.js, and operating system version.

Built on netlify, node 6.9.1/ubuntu 14.04, used via https://www.netlify.com/admin

@fool fool added the kind: bug label Dec 2, 2016
cassiozen pushed a commit that referenced this issue Dec 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant