MDExVideoEmbed

Hex.pm][shield-hex]][hexpm] [![Hex Docs][shield-docs] [ Apache 2.0Coveralls

Privacy-respecting video embeds in Markdown with MDEx using a code block.

Currently supporting YouTube embeds with click-to-load consent and privacy-enhanced modes. Local mode provides maximum privacy (no iframe until consent) but may require two clicks when browser auto-play policies apply. EmbedLite mode directly embeds iframe for single-click playback.

See the MDEx plugins guide for more information on using MDEx plugins.

Privacy-First Design

This extension will only support video embeds where enhanced privacy options exist.

Native support will not be provided for embeds with invasive tracking or surveillance features.

Quick Start

markdown = """
```video source=youtube
dQw4w9WgXcQ
title=Never Gonna Give You Up
```
"""

MDEx.to_html!(markdown, plugins: [MDExVideoEmbed])

Installation

Add mdex_video_embed to your dependencies in mix.exs:

def deps do
  [
    {:mdex_video_embed, "~> 1.0"}
  ]
end

Documentation is found on HexDocs.

Semantic Versioning

MDExVideoEmbed follows Semantic Versioning 2.0.