We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e42698 commit a911e96Copy full SHA for a911e96
plugin/youtube.go
@@ -18,7 +18,7 @@ var EXPERIMENTALYoutubeEmbed = []md.Rule{
18
Filter: []string{"iframe"},
19
Replacement: func(content string, selec *goquery.Selection, opt *md.Options) *string {
20
src := selec.AttrOr("src", "")
21
- if !strings.Contains(src, "www.youtube.com") {
+ if !strings.Contains(src, "youtube.com") {
22
return nil
23
}
24
alt := selec.AttrOr("title", "")
0 commit comments