MDExVideoEmbed
- code :: https://github.com/halostatue/mdex_video_embed
- issues :: https://github.com/halostatue/mdex_video_embed/issues
- examples :: https://github.com/halostatue/mdex_video_embed/tree/main/example
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.
- Privacy-enhanced embed modes
- Deferred user tracking until after consent provided
- Minimal data collection practices
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"}
]
endDocumentation is found on HexDocs.
Semantic Versioning
MDExVideoEmbed follows Semantic Versioning 2.0.