CTAN
Comprehensive TeX Archive Network

CTAN Mark­down: In­line HTML

In gen­eral in­line HTML is san­i­tized and the re­sult is passed to the out­put.

abc <b>def</b> ghi  

abc def ghi

This san­i­tiz­ing means that only white-listed HTML tags and white-listed tag pa­ram­e­ters are passed through. Black-listed HTML tags are deleted. Un­known tags are es­caped, i.e. the open­ing < and clos­ing > are trans­lated to HTML en­ti­ties.

abc <bx>def</bx> ghi  

abc <bx>def</bx> ghi

Not white-listed tag pa­ram­e­ters are sup­pressed.

Black-listed tags are sup­pressed ei­ther with or with­out their body.

The fol­low­ing list con­tains the white-listed tags and at­tributes:

TagAt­tributes
aclass, id, style, name, href, ti­tle
abbrclass, id, style
acronymclass, id, style
ad­dressclass, id, style
areaclass, id, style
bclass, id, style
bdoclass, id, style
bigclass, id, style
block­quoteclass, id, style
brclass, id, style
cap­tionclass, id, style
cen­terclass, id, style
citeclass, id, style
codeclass, id, style
colclass, id, style
col­groupclass, id, style
ddclass, id, style
delclass, id, style
dfnclass, id, style
dirclass, id, style
divclass, id, style, align
dlclass, id, style
dtclass, id, style
emclass, id, style
fontclass, id, style, color, face, size
h1class, id, style
h2class, id, style
h3class, id, style
h4class, id, style
h5class, id, style
h6class, id, style
hrclass, id, style
iclass, id, style
imgclass, id, style, src, width, height, alt, ti­tle
insclass, id, style
isin­dexclass, id, style
kbdclass, id, style
leg­endclass, id, style
liclass, id, style
mapclass, id, style
noframesclass, id, style
no­scriptclass, id, style
olclass, id, style
opt­groupclass, id, style
pclass, id, style, align
preclass, id, style
qclass, id, style
sclass, id, style
sampclass, id, style
smallclass, id, style
spanclass, id, style
strikeclass, id, style
strongclass, id, style
subclass, id, style
supclass, id, style
ta­bleclass, id, style
tbodyclass, id, style
tdclass, id, style, align
tfootclass, id, style
thclass, id, style, align
theadclass, id, style
trclass, id, style
ttclass, id, style
uclass, id, style
ulclass, id, style
varclass, id, style
Note:
In con­trast to GFM the ta­ble tags are not for­bid­den.

The fol­low­ing list con­tains the black-listed tags and the unit which is sup­pressed:

TagSu­presses
!DOCTYPEskip tag
ap­pletig­nore body
baseskip tag
base­fontskip tag
bodyskip tag
but­tonskip tag
field­setskip tag
formskip tag
frameig­nore body
frame­setig­nore body
headig­nore body
htmlskip tag
iframeig­nore body
in­putskip tag
la­belskip tag
linkskip tag
menuskip tag
metaskip tag
ob­jectig­nore body
op­tionskip tag
paramskip tag
scriptig­nore body
se­lectskip tag
styleig­nore body
textareaskip tag
ti­tleig­nore body

As you can see the “dan­ger­ous” JavaScript tags and at­tributes are fil­tered out.

CTAN Mark­down

CTAN Mark­down Tester

The re­sult of the mark­down can in­ter­ac­tively be tested with our

Mark­down Tester
Guest Book Sitemap Contact Contact Author