Skip to content

Instantly share code, notes, and snippets.

@samkhan1
Last active February 7, 2023 21:29
Show Gist options
  • Save samkhan1/e430bf3da0b0fb6377f1b132de0ae4a8 to your computer and use it in GitHub Desktop.
Save samkhan1/e430bf3da0b0fb6377f1b132de0ae4a8 to your computer and use it in GitHub Desktop.

HTML tags allowed by special filter with sanitization routines in Github Flavored Markdown:

a
abbr dfn
b strong 
bdo
br
cite q
code pre blockquote
del ins
details summary
div
dl dd dt
figure caption figcaption
h1 h2 h3 h4 h5 h6 h7 h8
hr
i em
img 
kbd samp
mark
ol ul li
p
ruby rt rp
s strike
small
span
sup sub
table tbody tfoot thead td th tr 
time
tt
var
wbr

Notes:

  • in the above list of html tags, similar or related ones are placed in the same row
  • kbd and samp render in the same way as code
  • var renders in the same way as i and em
  • tt doesn't exist in html5. Instead use code, kbd or samp
  • strike doesn't exist in html5. Instead use del or s
  • ins can be used for underlining text
  • details can be used for creating clopasable section of text to hide or show "spoilers"
  • mark can be used for highlighting text
  • <span style="color:blue">blue</span> doesn't work. See raw text of this file to verify: blue

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment