File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1111,7 +1111,7 @@ const vimeoPlugin = new Plugin(
11111111 / { % v i m e o \s * ( [ \d \D ] * ?) \s * % } / ,
11121112
11131113 ( match , utils ) => {
1114- const videoid = match [ 1 ]
1114+ const videoid = match [ 1 ] . split ( / [ ? & = ] + / ) [ 0 ]
11151115 if ( ! videoid ) return
11161116 const div = $ ( '<div class="vimeo raw"></div>' )
11171117 div . attr ( 'data-videoid' , videoid )
@@ -1126,7 +1126,7 @@ const gistPlugin = new Plugin(
11261126 / { % g i s t \s * ( [ \d \D ] * ?) \s * % } / ,
11271127
11281128 ( match , utils ) => {
1129- const gistid = match [ 1 ]
1129+ const gistid = match [ 1 ] . split ( / [ ? & = ] + / ) [ 0 ]
11301130 const code = `<code data-gist-id="${ gistid } "></code>`
11311131 return code
11321132 }
@@ -1144,7 +1144,7 @@ const slidesharePlugin = new Plugin(
11441144 / { % s l i d e s h a r e \s * ( [ \d \D ] * ?) \s * % } / ,
11451145
11461146 ( match , utils ) => {
1147- const slideshareid = match [ 1 ]
1147+ const slideshareid = match [ 1 ] . split ( / [ ? & = ] + / ) [ 0 ]
11481148 const div = $ ( '<div class="slideshare raw"></div>' )
11491149 div . attr ( 'data-slideshareid' , slideshareid )
11501150 return div [ 0 ] . outerHTML
You can’t perform that action at this time.
0 commit comments