Skip to content

Commit 4eb9b76

Browse files
authored
feat: add more YouTube domains (#569)
If Lua used regexes it would be simpler to do this (single pattern) but since there's no support for alternation, the current entry is duplicated to support the "youtu.be" and "youtube-nocookie.com" domains.
1 parent 7a43c8b commit 4eb9b76

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lua/render-markdown/settings.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,8 @@ M.link.default = {
13031303
twitter = { pattern = 'x%.com', icon = '' },
13041304
wikipedia = { pattern = 'wikipedia%.org', icon = '󰖬 ' },
13051305
youtube = { pattern = 'youtube%.com', icon = '󰗃 ' },
1306+
youtube_nocookie = { pattern = 'youtube-nocookie%.com', icon = '󰗃 ' },
1307+
youtube_short = { pattern = 'youtu%.be', icon = '󰗃 ' },
13061308
},
13071309
}
13081310

0 commit comments

Comments
 (0)