Skip to content

HTML Tags #3

@wooorm

Description

@wooorm

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
  • rootroot
  • texttext
  • commenthtml
  • element (see below)
Explicitly Ignored Nodes
  • doctype
Elements (todo / done)
  • alink
  • abbr → children
  • acronym → children
  • address → block children
  • article → block children
  • aside → block children
  • audio → children if block or with link, link otherwise
  • bstrong
  • base → to resolved URLs in link and image
  • bdi → children
  • bdo → children
  • big → children
  • blink → children
  • blockquoteblockquote
  • body → block children
  • brbreak
  • button → children
  • canvas → children
  • center → block children
  • cite → children
  • codeinlineCode
  • data → children
  • ddlist, with the contents of dl / dt, or when there are multiple dts or dds, one or two lists
  • deldelete
  • details → children
  • dfn → children
  • dirlist
  • div → block children
  • dllistItem
  • dtlistItem
  • ememphasis
  • fieldset → block children
  • figcaption → block children
  • figure → block children
  • font → children
  • footer → block children
  • form → block children
  • h1heading
  • h2heading
  • h3heading
  • h4heading
  • h5heading
  • h6heading
  • header → block children
  • hgroup → block children
  • html → block children
  • hrthematicBreak
  • iemphasis
  • iframelink (if with title and src), otherwise ignored
  • imageimage
  • imgimage
  • input → to its value; with a checkbox if radio or checkbox; the selected values or placeholder label options if with list
  • ins → children
  • kbdinlineCode
  • label → children
  • legend → block children
  • lilistItem
  • listingcode
  • main → block children
  • markemphasis
  • marqueechildren
  • meter → children
  • multicol → block children
  • nav → block children
  • nobr → children
  • noscript → children
  • ollist
  • output → children
  • pparagraph
  • picture → block children (should be one image if HTML is valid)
  • plaintextcode
  • precode
  • progress → children
  • q" and children
  • rb → children
  • rbc → children
  • rp → children
  • rt → children
  • rtc → children
  • ruby → children
  • sdelete
  • sampinlineCode
  • section → block children
  • select → its selected values or its placeholder label options
  • slot → children
  • small → children
  • span → children
  • strikedelete
  • strongstrong
  • sub → children
  • summaryparagraph
  • sup → children
  • tabletable
  • tbody → children
  • tdtableCell
  • textareatext
  • tfoot → children
  • thtableCell
  • thead → children
  • time → children
  • trtableRow
  • ttinlineCode
  • uemphasis
  • ullist
  • varinlineCode
  • video → children if block or with link, link otherwise, image if with poster
  • wbrtext with a zero-width space ('\u200B')
  • xmpcode
Implicitly Unhandled Elements
  • head
Explicitly Ignored Elements
  • applet
  • area
  • basefont
  • bgsound
  • caption
  • col
  • colgroup
  • command
  • content
  • datalist (affects inputs with list)
  • dialog
  • element
  • embed
  • frame
  • frameset
  • isindex
  • keygen
  • link
  • map
  • math
  • menu
  • menuitem
  • meta
  • nextid
  • noembed
  • noframes
  • object
  • optgroup (affects selects, inputs with list)
  • option (affects selects, inputs with list)
  • param
  • script
  • shadow
  • source (affect audio and video)
  • spacer
  • style
  • svg
  • template
  • title
  • track

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions