Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
[MM-37074] Encapsulate inserted GIFs in inline image markdown (#8362)
Browse files Browse the repository at this point in the history
* Encapsulate inserted GIFs in inline image markdown

As per "Other notes" of https://mattermost.atlassian.net/browse/MM-12290

* Fix square bracket replacement for inline GIFs
  • Loading branch information
Roy-Orbison authored Jul 14, 2021
1 parent 6b9f418 commit afe71a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/gif_picker/gif_picker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class GifPicker extends React.PureComponent {
}

handleItemClick = (gif) => {
this.props.onGifClick(gif.max5mbGif);
this.props.onGifClick('![' + gif.title.replace(/]|\[/g, '\\$&') + '](' + gif.max5mbGif + ')');
}

render() {
Expand Down

0 comments on commit afe71a9

Please sign in to comment.