Commits

zyegfryed  committed 094bcf1

Fixed regular expression for Youtube directive to allow whitespace between directive name and URL.

  • Participants
  • Parent commits 50084db

Comments (0)

Files changed (1)

File mdx_video.py

         self.add_inline(md, 'yahoo', Yahoo,
             r'([^(]|^)http://video\.yahoo\.com/watch/(?P<yahoovid>\d+)/(?P<yahooid>\d+)')
         self.add_inline(md, 'youtube_directive', Youtube,
-            r'\[youtube: http://www\.youtube\.com/watch\?\S*v=(?P<youtubeargs>[A-Za-z0-9_&=-]+)\S*\]')
+            r'\[youtube:\s*http://www\.youtube\.com/watch\?\S*v=(?P<youtubeargs>[A-Za-z0-9_&=-]+)\S*\]')
         self.add_inline(md, 'youtube', Youtube,
             r'([^(]|^)http://www\.youtube\.com/watch\?\S*v=(?P<youtubeargs>[A-Za-z0-9_&=-]+)\S*')