yogthos/markdown-clj

HR lines written with consecutive - characters are superseded by empty headings

Offen

#190 geöffnet am 03.01.2023

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Clojure (120 Forks)github user discovery
bughelp wanted

Repository-Metriken

Stars
 (570 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Using 1.11.4

I would PR but I'm not sure the exact cause.

Behavior

This markup:


***

- - -

---

-----

that presumably should be output as

<hr>
<hr>
<hr>
<hr>

is instead transformed to:

<hr>
<hr>
<h2></h2>
<h2></h2>

I believe because empty-line comes before hr in the list of transformers? The h1? and h2? heading checks, present in empty-line, register true for = and - HRs. Or something else...

Would it be as simple as adding hr to the conditions of empty-line here? Or should checks be rewritten, transformers reordered etc. Thanks!

Contributor Guide