Skip to content

Add <video> to type 6 block-level HTML tag list #841

Closed

Description

@hryhoriiK97

The CommonMark spec's type 6 HTML block tag list includes media-related elements like <iframe> and <track>, but omits <video>.

The <video> element is widely used in markdown documents to embed video content:

<video src="https://example.com/video.mp4"></video>

Without type 6 recognition, <video> falls back to type 7, which requires the tag to be alone on the line followed only by a blank line. This is an unnecessary restriction compared to other media tags that are already in the list.

Proposal

Add video (and potentially audio, source, picture) to the type 6 tag list in section 4.6.

Rationale

  • <video> is a block-level HTML element, similar to <iframe> which is already included
  • It is part of the HTML Living Standard and widely supported
  • Markdown processors like md4c are in the process of adding it as an extension (mity/md4c#407)
  • The current type 6 list has not been updated to reflect modern HTML media elements

Activity

  1. jgm commented on Sep 8, 2026

    @jgm
    Member

    No, this wouldn't make sense. A video element is "phrasing content," i.e. it can occur inline in a paragraph. So we don't want it type 6, which is is just for tags that are always block content (flow rather than phrasing).
    https://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Content_categories

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions