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 @@ -30,11 +30,11 @@ function convertToImgTag(text, params) {
3030
3131function createMarkdownImages ( text , params ) {
3232 let markdownImageArray = [ ]
33- const results = text . match ( / \! \[ .* \] \( h t t p s : \/ \/ \S + ( j p g | j p e g | p n g ) \) / gmi)
33+ const results = text . match ( / \! \[ .* \] \( h t t p s : \/ \/ \S + ( j p g | j p e g | p n g | g i f ) \) / gmi)
3434 if ( results == null ) { return null }
3535
3636 for ( const mdImage of results ) {
37- const imageURL = mdImage . match ( / h t t p s : \S + ( j p g | j p e g | p n g ) / i) [ 0 ]
37+ const imageURL = mdImage . match ( / h t t p s : \S + ( j p g | j p e g | p n g | g i f ) / i) [ 0 ]
3838 const imageTag = `<img src=${ imageURL } ${ params } >`
3939 const markdownImage = new MarkdownImage ( imageURL , mdImage , imageTag )
4040 markdownImageArray . push ( markdownImage )
@@ -58,4 +58,4 @@ function createParams(storage) {
5858 }
5959
6060 return result
61- }
61+ }
You can’t perform that action at this time.
0 commit comments