GitHub 39
Skip to content

comark/embed/height-unsupported

Set height only on players without a height of their own

Only a player with no height of its own, such as CodePen, StackBlitz, or Figma, takes height. A video keeps its aspect ratio, Spotify draws its own player, and an X post grows to the post, so height on them is ignored.

Incorrect

::embed{url="https://youtu.be/KCrXgy8qtjM" title="Vite in 100 Seconds" height=480}
::
md

Correct

::embed{url="https://youtu.be/KCrXgy8qtjM" title="Vite in 100 Seconds"}
::
md