Brickster / pretty-markdown

Sublime Text plugin for beatifying a markdown file when saving.
MIT License
0 stars 0 forks source link

convert_horizontal_rules doesn't change multiple rules in a row #11

Closed Brickster closed 10 years ago

Brickster commented 10 years ago

For text:


---

---

---

calling convert_horizontal_rules(text, '***') will output:

***

---

---
Brickster commented 10 years ago

Now, horizontal rules must be preceded by blank line, another horizontal rule, or a setext header.