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

Multiple newline support #242

Open
swingwar opened this issue Oct 20, 2016 · 2 comments
Open

Multiple newline support #242

swingwar opened this issue Oct 20, 2016 · 2 comments
Labels

Comments

@swingwar
Copy link

I'm trying to create a plugin that will allow for multiple line breaks. ie.

'Multiple \n\n\n\n\n lines!'

would render as

<p>Multiple</p><br /><br /><br /><br /><br /><p>lines!</p>

or even just leave it as is.

Current behavior renders it as <p>Multiple</p>\n<p>lines!</p>\n' and pretty-remarkable renders it as Multiple \n\n lines

I've dug through both pretty-remarkable and remarkable source to try to better understand but have come up empty. New lines seem to be getting stripped out somewhere but can't figure out where. Any help in achieving this effect would be much appreciated.

@brendanmoore
Copy link

brendanmoore commented Jan 27, 2017

As a workaround for this issue I added white-space: pre-wrap to the container. By no means a perfect solution but worked for my use case

@jonschlinkert
Copy link
Owner

sorry for the late reply, here is an example plugin that you can modify to accomplish what you're suggesting. hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants