-
-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
💬 type/discussionThis is a request for commentsThis is a request for comments
Description
I made a list of tags in HTML, and whether they’re mapped to markdown.
Note that some nodes should stay unmapped, as that means they are unwrapped, which is a good thing for <section>, <main>, <address>, and probably many more.
Nodes
-
root→root -
text→text -
comment→html -
element(see below)
Explicitly Ignored Nodes
-
doctype
Elements (todo / done)
-
a→link -
abbr→ children -
acronym→ children -
address→ block children -
article→ block children -
aside→ block children -
audio→ children if block or with link, link otherwise -
b→strong -
base→ to resolved URLs inlinkandimage -
bdi→ children -
bdo→ children -
big→ children -
blink→ children -
blockquote→blockquote -
body→ block children -
br→break -
button→ children -
canvas→ children -
center→ block children -
cite→ children -
code→inlineCode -
data→ children -
dd→list, with the contents ofdl/dt, or when there are multipledts ordds, one or two lists -
del→delete -
details→ children -
dfn→ children -
dir→list -
div→ block children -
dl→listItem -
dt→listItem -
em→emphasis -
fieldset→ block children -
figcaption→ block children -
figure→ block children -
font→ children -
footer→ block children -
form→ block children -
h1→heading -
h2→heading -
h3→heading -
h4→heading -
h5→heading -
h6→heading -
header→ block children -
hgroup→ block children -
html→ block children -
hr→thematicBreak -
i→emphasis -
iframe→link(if with title and src), otherwise ignored -
image→image -
img→image -
input→ to its value; with a checkbox ifradioorcheckbox; the selected values or placeholder label options if withlist -
ins→ children -
kbd→inlineCode -
label→ children -
legend→ block children -
li→listItem -
listing→code -
main→ block children -
mark→emphasis -
marquee→children -
meter→ children -
multicol→ block children -
nav→ block children -
nobr→ children -
noscript→ children -
ol→list -
output→ children -
p→paragraph -
picture→ block children (should be one image if HTML is valid) -
plaintext→code -
pre→code -
progress→ children -
q→"and children -
rb→ children -
rbc→ children -
rp→ children -
rt→ children -
rtc→ children -
ruby→ children -
s→delete -
samp→inlineCode -
section→ block children -
select→ its selected values or its placeholder label options -
slot→ children -
small→ children -
span→ children -
strike→delete -
strong→strong -
sub→ children -
summary→paragraph -
sup→ children -
table→table -
tbody→ children -
td→tableCell -
textarea→text -
tfoot→ children -
th→tableCell -
thead→ children -
time→ children -
tr→tableRow -
tt→inlineCode -
u→emphasis -
ul→list -
var→inlineCode -
video→ children if block or with link, link otherwise, image if with poster -
wbr→textwith a zero-width space ('\u200B') -
xmp→code
Implicitly Unhandled Elements
-
head
Explicitly Ignored Elements
-
applet -
area -
basefont -
bgsound -
caption -
col -
colgroup -
command -
content -
datalist(affects inputs withlist) -
dialog -
element -
embed -
frame -
frameset -
isindex -
keygen -
link -
map -
math -
menu -
menuitem -
meta -
nextid -
noembed -
noframes -
object -
optgroup(affects selects, inputs withlist) -
option(affects selects, inputs withlist) -
param -
script -
shadow -
source(affectaudioandvideo) -
spacer -
style -
svg -
template -
title -
track
nienkeboomsma
Metadata
Metadata
Assignees
Labels
💬 type/discussionThis is a request for commentsThis is a request for comments