gettalong / kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
http://kramdown.gettalong.org
Other
1.72k stars 274 forks source link

Void elements should not use trailing slashes. #795

Closed Raza403 closed 11 months ago

Raza403 commented 11 months ago

Trailing slashes on void elements have no effect and interact badly with unquoted attribute values. Suggest removing trailing slashes from void elements such as img, hr, or br.

gettalong commented 11 months ago

kramdown outputs valid XHTML, so the trailing slash is needed.

fulldecent commented 11 months ago

Related discussion for cross reference:

https://groups.google.com/g/kramdown-users/c/m8I_hHFALk0?pli=1