pegdown icon indicating copy to clipboard operation
pegdown copied to clipboard

Parser fails to identify HRule

Open jyutzler opened this issue 11 years ago • 2 comments

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

jyutzler avatar Apr 24 '14 17:04 jyutzler

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.

vsch avatar Aug 21 '15 22:08 vsch

Closed by #181.

sirthias avatar Aug 22 '15 21:08 sirthias