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

Support for unescaped newlines #56

Closed
jeremyblalock opened this issue Feb 2, 2017 · 3 comments
Closed

Support for unescaped newlines #56

jeremyblalock opened this issue Feb 2, 2017 · 3 comments

Comments

@jeremyblalock
Copy link

We are migrating our web app from Backbone to React, and hoping to replace marked with react-markedown. The problem it, we need to convert single newlines to broken newlines (<br />), and I can't seem to find a way to do that in react-markdown.

This is the option we set in marked to enable this functionality: https://github.com/chjj/marked#breaks

We need this support for backwards compatibility in our app, as well as to follow the generally accepted Github style of markdown which is fairly well known to our users. From what I can tell, because react-markdown uses CommonMark, this is not something available as an option.

Any thoughts?

@prog8
Copy link

prog8 commented Apr 25, 2017

I also have similar problem. It's not convenient to use <br/> in each place I want to break line.

@johnandblue
Copy link

Have you tried use Hardbreak as prop? I had a similar issue using Softbreak as the

that creates comes with a margin-top and margin-bottom

@rexxars
Copy link
Collaborator

rexxars commented Nov 21, 2017

This has changed a bit since v3 was released. Please see #105 (comment)

@rexxars rexxars closed this as completed Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants