sirthias / pegdown

A pure-Java Markdown processor based on a parboiled PEG parser supporting a number of extensions
http://pegdown.org
Apache License 2.0
1.29k stars 217 forks source link

LF will translated to <br> #106

Closed opensource21 closed 11 years ago

opensource21 commented 11 years ago

I use pegdown via the markdown-plugin for jedit. It works fine except that

   This is an
   example

will converted to <p>This is an<br/> example</p>

jirutka commented 11 years ago

This is due to HARDWRAPS extension (see README). It can be easily disabled, e.g. new PegDownProcessor(ALL & ~HARDWRAPS);.

opensource21 commented 11 years ago

Thanks for the quick response and sorry for creating an issue without reading the README.