Which inline HTML styles does GitHub Markdown accept?

Viewed 14354

This gives a pretty thorough description of how HTML elements are interpreted by Markdown. But it does not discuss styles.

So far, the only thing I can get to work is image width.

  1. I can't find a list anywhere of what is accepted/rendered
  2. It appears that the style="....." attribute is completely ignored.
  3. I can't even find a list of the old-fashioned style attributes (as opposed to the style attribute style=...)

https://gist.github.com/abalter/46df1b79e9f429342972477d7c20cebc


Change span to div due to div being in the whitelisted tags per @waylan's comment under @chris's answer.

It appears that Firefox and Chrome don't render any style attributes any more at all.

1 Answers
Related