Steemit's HTML Whitelist
Steemit posts support a limited subset of HTML that can be mixed with the Markdown syntax.
While Markdown is documented (click on 'Markdown Styling Guide' in the editor view), I was not able to find any detailed documentation for HTML in Steemit posts.
I thought that I could do it myself and gathered the information from the source code of Condenser, the official Steemit UI.
This following list of tags, attributes and classes is my interpretation of the code. I hope it helps. Please keep in mind that this is not officially documented and Steemit may change the whitelitsted HTML in the future. Also, please let me know in the comments if you find any mistakes or missing information.
Tags that allow attributes
a(Reference)- Attributes
- href
- rel
- Attributes
div(Reference)- Attributes
- class
- Allowed class values
- pull-right
- pull-left
- text-justify
- text-rtl
- text-center
- text-right
- videoWrapper
- phishy
- Allowed class values
- title
- class
- Attributes
iframe(Reference)- Attributes
- src
- Supports only youtube, vimeo and soundcloud
- width
- height
- frameborder
- allowfullscreen
- webkitallowfullscreen
- mozallowfullscreen
- src
- Attributes
img(Reference)- Attributes
- src
- alt
- Attributes
td(Reference)- Attributes
- style
- Attributes
Tags without attributes
b(Reference)blockquote(Reference)br(Reference)center(Reference)code(Reference)del(Reference)em(Reference)h1(Reference)h2(Reference)h3(Reference)h4(Reference)h5(Reference)h6(Reference)hr(Reference)i(Reference)li(Reference)ol(Reference)p(Reference)pre(Reference)q(Reference)strike(Reference)strong(Reference)sub(Reference)sup(Reference)table(Reference)tbody(Reference)th(Reference)thead(Reference)tr(Reference)ul(Reference)
Furthermore, HTML entities like are allowed.
As @dbooster pointed out, Steemit removes HTML comments from the markup. Besides of obscure Markdown voodoo, there seems to be no good way to have comments in articles.
Based on this information, I am happy to be able to offer you this helpful snippet:
<center>
<div class="phishy">🔥🔥🔥UPVOTERS ARE MORE SUCCESSFUL🔥🔥🔥</div><br>
<div class="phishy">🔥🔥🔥RESTEEMERS LIVE LONGER🔥🔥🔥</div>
</center>
It should produce following output:
Leave Steemit's HTML Whitelist to:
Read more #steemit posts
Best Posts From snug
We have not curated any of snug's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From snug
- The Seven Day B&W Challenge: Day Six
- The Seven Day B&W Challenge: Day Five
- The Seven Day B&W Challenge: Day Four
- MRW BTC transactions are piling up
- The Seven Day B&W Challenge: Day Three
- SteemConnect should allow the same username formats as Steemit
- The Seven Day B&W Challenge: Day Two
- The Seven Day B&W Challenge: Day One
- SteemConnect, please automatically focus username input
- Bug report [steemit/condenser]: Center Tag with Blank Line Misinterpreted