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 218 forks source link

Space after > for blockquotes #217

Open md384 opened 8 years ago

md384 commented 8 years ago

The rule for blockquotes uses an optional space after the > so strings like >10mg get parsed to

<blockquote>
   <p>10mg</p>
</blockquote>

I believe that the space after the > should be non-optional so >10mg is parsed to

<p>>10mg</p>
vsch commented 8 years ago

@md384, as a workaround you can put a space before the > then it will not be interpreted as a block quote. Block quotes are only recognized if they are the first character in the line