Brickster / pretty-markdown

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

convert_horizontal_rules does not ignore setext headers #7

Closed Brickster closed 10 years ago

Brickster commented 10 years ago

When calling convert_horizontal_rules with horizontal_rule='---':

Header
------

will convert to:

Header

---

despite the fact that the dashes are for a setext header and not a rule.

Brickster commented 10 years ago

convert_horizontal_rules no longer changes setext headers but horizontal rules now must be preceded by a blank line.