notslang / tidy-markdown

Beautify Markdown, fixing formatting mistakes and standardizing syntax
https://npmjs.com/package/tidy-markdown
GNU General Public License v3.0
75 stars 11 forks source link

strip empty <a>, <em> and <strong> tags #34

Open notslang opened 8 years ago

notslang commented 8 years ago

Not sure if there should be an option for this or if it should be automatic. We currently leave empty tags alone, in case the user is (for example) in the middle of typing out a link and then runs tidy-markdown, but maybe there should be a flag for stripping those out, especially when the user is converting from potentially messy HTML.