Error in Markdown horizontal rule #578

Open
opened 2026-01-29 14:40:15 +00:00 by claunia · 0 comments
Owner

Originally created by @NUnitTester on GitHub (Nov 29, 2022).

"Zeile 1\r\n---\r\nZeile 2"
give wrong result
"<h2 id="zeile-1">Zeile 1</h2>\n<p>Zeile 2</p>\n"
instead of
"<p>Zeile 1</p>\n<hr />\n<p>Zeile 2</p>\n"

This works
"Zeile 1\r\n- - - - - - - -\r\nZeile 2"

Example copied from here
stackabuse

Originally created by @NUnitTester on GitHub (Nov 29, 2022). `"Zeile 1\r\n---\r\nZeile 2"` give wrong result `"<h2 id="zeile-1">Zeile 1</h2>\n<p>Zeile 2</p>\n"` instead of `"<p>Zeile 1</p>\n<hr />\n<p>Zeile 2</p>\n"` This works `"Zeile 1\r\n- - - - - - - -\r\nZeile 2"` Example copied from here [stackabuse](https://stackabuse.com/markdown-by-example)
claunia added the questioninvalid labels 2026-01-29 14:40:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#578