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(
1111
1111
/ { % v i m e o \s * ( [ \d \D ] * ?) \s * % } / ,
1112
1112
1113
1113
( match , utils ) => {
1114
- const videoid = match [ 1 ]
1114
+ const videoid = match [ 1 ] . split ( / [ ? & = ] + / ) [ 0 ]
1115
1115
if ( ! videoid ) return
1116
1116
const div = $ ( '<div class="vimeo raw"></div>' )
1117
1117
div . attr ( 'data-videoid' , videoid )
@@ -1126,7 +1126,7 @@ const gistPlugin = new Plugin(
1126
1126
/ { % g i s t \s * ( [ \d \D ] * ?) \s * % } / ,
1127
1127
1128
1128
( match , utils ) => {
1129
- const gistid = match [ 1 ]
1129
+ const gistid = match [ 1 ] . split ( / [ ? & = ] + / ) [ 0 ]
1130
1130
const code = `<code data-gist-id="${ gistid } "></code>`
1131
1131
return code
1132
1132
}
@@ -1144,7 +1144,7 @@ const slidesharePlugin = new Plugin(
1144
1144
/ { % s l i d e s h a r e \s * ( [ \d \D ] * ?) \s * % } / ,
1145
1145
1146
1146
( match , utils ) => {
1147
- const slideshareid = match [ 1 ]
1147
+ const slideshareid = match [ 1 ] . split ( / [ ? & = ] + / ) [ 0 ]
1148
1148
const div = $ ( '<div class="slideshare raw"></div>' )
1149
1149
div . attr ( 'data-slideshareid' , slideshareid )
1150
1150
return div [ 0 ] . outerHTML
You can’t perform that action at this time.
0 commit comments