I’m not sure which one Discourse uses, but “pandoc” and a few others seem to get it right.
http://johnmacfarlane.net/babelmark2/?text=+-+waefwefawe +-+rtehergsergser +-+fawefawegaew +-+greagwergawe +-+egawegaewgew