showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript
http://www.showdownjs.com/
MIT License
14.26k stars 1.56k forks source link

Flavor github issue. Render normal text. #743

Closed jcs090218 closed 4 years ago

jcs090218 commented 4 years ago

When github renders the normal text it gives line break between paragraph. For example,

Hello world!
Comment here.

Should render like this.

Hello world! Comment here.

But result:

Hello world! 
Comment here.
jcs090218 commented 4 years ago

To answer my own issue. This line of code resolved my issue. Not sure why this isn't default to false in GitHub flavor which the README.md file is incorrect.

converter.setOption('simpleLineBreaks', false);