Media Embeds
Images, GIFs, videos, and embedded content

Media Embeds#

Arcane Lexicon provides a special syntax for embedding media content. Use the @[type](source) syntax to embed videos, images, GIFs, and more.

YouTube Videos#

Embed YouTube videos using the video ID or full URL:

@[youtube](dQw4w9WgXcQ)

@[youtube](https://www.youtube.com/watch?v=dQw4w9WgXcQ)

@[youtube autoplay muted](VIDEO_ID)

Live Example#

@youtube

With Options#

You can add attributes for autoplay, loop, mute, and timestamps:

@[youtube autoplay muted loop](VIDEO_ID)

@[youtube start="30" end="60"](VIDEO_ID)

Local Videos#

Embed video files from your assets:

@[video](path/to/video.mp4)

@[video autoplay loop muted](demo.mp4)

@[video poster="thumbnail.jpg" caption="Demo video"](demo.mp4)

Supported Formats#

FormatExtensionNotes
MP4.mp4Most compatible
WebM.webmModern browsers
OGG.ogg, .ogvOpen format
MOV.movQuickTime

Video Attributes#

AttributeEffect
autoplayStart playing automatically
loopLoop the video
mutedMute audio (required for autoplay in most browsers)
playsinlinePlay inline on mobile
poster="url"Thumbnail image before play
caption="text"Caption below video

Images with Captions#

Use the image syntax for responsive images with optional captions:

@[image caption="A beautiful sunset"](sunset.png)

@[image alt="Logo" width="200"](logo.png)

Attributes#

AttributeEffect
caption="text"Caption displayed below image
alt="text"Alt text for accessibility
width="value"Set width (px or %)
height="value"Set height (px or %)
eagerDisable lazy loading

Animated GIFs#

@[gif](animation.gif)

@[gif caption="Loading animation"](loader.gif)

GIFs are displayed with lazy loading by default.

Animated PNGs (APNG)#

@[apng](animation.png)

@[apng caption="Smooth animation"](demo.apng)

APNGs offer better quality than GIFs with transparency support.

Twitter/X Embeds#

Embed tweets using the tweet ID or URL:

@[twitter](1215212801876090880)

@[x](https://twitter.com/elonmusk/status/1215212801876090880)

@[twitter theme="light"](TWEET_ID)

Live Example#

@twitter

Theme Options#

ThemeDescription
darkDark background (default)
lightLight background

Generic Iframes#

For other embeddable content:

@[iframe](https://example.com/embed)

@[iframe title="Demo" width="100%" height="500"](https://example.com/embed)

Iframe Attributes#

AttributeDefaultDescription
title"Embedded content"Accessibility title
width"100%"Frame width
height"400"Frame height

Syntax Reference#

The general syntax is:

@[type attributes](source)
ComponentRequiredDescription
@YesMedia marker
[type]YesMedia type (youtube, video, image, etc.)
attributesNoSpace-separated key="value" or flags
(source)YesURL, path, or ID

Best Practices#

  1. Use descriptive captions for accessibility
  2. Prefer WebM over GIF for smaller file sizes
  3. Always include alt text for images
  4. Use lazy loading (default) for better performance
  5. Provide poster images for videos to improve perceived load time
  6. Keep videos short and consider hosting on YouTube for larger files