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

Parser fails to identify HRule #129

Open jyutzler opened 10 years ago

jyutzler commented 10 years ago

Send the following into the parser

Hello World
***

---
___

These should all be an HRule:




None of them work right in pegdown-1.4.2.jar

vsch commented 8 years ago

You have to have at least one blank line above and below an HRule marker. GitHub's rules are more relaxed.

try:

Hello World

***

---

___

It is actually a bit less strict on the blank line above. You need it if the previous lines can include lazy continuation that could interpret the horizontal rule as that. So to be safe it is best to have a blank line before the HRule.

sirthias commented 8 years ago

Closed by #181.