commonmark / commonmark-java

Java library for parsing and rendering CommonMark (Markdown)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Horizontal Rule ('---') render issue

Niloufar-Vafaei opened this issue · comments

Steps to reproduce the problem (provide example Markdown if applicable):
I using HtmlRenderer for renderer my html body . my HTML body-> "test\n---". when I pas this boy to render function, "---" are ignored and I don't know why. If I added more "\n" to my HTML body, the render fun can recognize "---" is "hr" tag.

Hey! So this:

test
---

Should render as a header (called "setext" headings in the specification):

<h2>test</h2>

Whereas for a hr, you need an extra blank line:

test

---

Does that help?