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

add support for definition lists #40

Open BuonOmo opened 8 years ago

BuonOmo commented 8 years ago

this text

definition
: something that explains

is converted to

definition : something that explains

This is an error, see babelmark

notslang commented 8 years ago

It looks like very few compilers recognize definition lists, so we would need to switch to one that does before we can support this... For the time being, you should probably just use <dl> tags, and those should be preserved.

Also, I don't think that definition lists are supported by common markdown, so idk what standard we should go off of.

BuonOmo commented 8 years ago

That right it is a fancy feature ! But it is recognized by pandoc, that’s enough for me ! By the way, which parser are you using ?

notslang commented 8 years ago

Right now I'm using marked, but I'd like to switch to a common-markdown compliant parser in the future.