Skip to content

Commit

Permalink
Merge pull request #48 from trhermans/patch-1
Browse files Browse the repository at this point in the history
Enable playlist functions for youtube.
  • Loading branch information
splitbrain committed Mar 7, 2017
2 parents 72e7f05 + 8cd683c commit da38eb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ function handle($match, $state, $pos, Doku_Handler $handler){
$urlparam = array();
foreach($paramm as $key => $value) {
switch($key) {
case 'list':
if(preg_match('/^[-\w]+$/',$value)) {
$urlparam[] = $key . '=' . $value;
}
break;
case 'rel':
case 'autoplay':
case 'ap':
Expand Down

0 comments on commit da38eb7

Please sign in to comment.