# Markdown Embed Configuration # # This file defines patterns and templates for converting URLs into embedded content # in markdown rendering. Each embed type has: # - regex: Pattern with named capture groups (?...) # - template: HTML template with %{capture_group_name} placeholders # # To add a new embed type: # 1. Add a new top-level key # 2. Define the regex pattern with named capture groups: (?pattern) # 3. Create an HTML template using %{name} placeholders matching the capture groups youtube: regex: 'https?://(?:www\.)?(?:youtube\.com/watch\?v=|youtu\.be/)(?[^&/]+)' template: |
loom: regex: 'https?://(?:www\.)?loom\.com/share/(?[^&/]+)' template: |
vimeo: regex: 'https?://(?:www\.)?vimeo\.com/(?\d+)' template: |
mp4: regex: '(?https?://(?:www\.)?.+\.mp4)' template: | arcade_tab: regex: 'https?://(?:www\.)?app\.arcade\.software/share/(?[^&/?]+)\?(?:[^&#]*&)*embed_mobile=tab(?:[&#?][^ ]*)?' template: |
arcade: regex: 'https?://(?:www\.)?app\.arcade\.software/share/(?[^&/]+)' template: |
wistia: regex: 'https?://(?:www\.)?[^/]+\.wistia\.com/medias/(?[^&/]+)' template: |
bunny: regex: 'https?://iframe\.mediadelivery\.net/play/(?\d+)/(?[^&/?]+)' template: |
codepen: regex: 'https?://(?:www\.)?codepen\.io/(?[^/]+)/pen/(?[^/?]+)' template: |
github_gist: regex: 'https?://gist\.github\.com/(?[^/]+)/(?[a-f0-9]+)' template: |