@@ -24,9 +24,10 @@ import Emoji from './modules/emoticons/emoji.es6';
2424import Smiley from './modules/emoticons/smiley.es6' ;
2525import Url from './modules/url.es6' ;
2626import CodeEmbed from './modules/code/codeEmbed.es6' ;
27- import VideoEmbed from './modules/video/videoEmbed .es6' ;
27+ import Video from './modules/video/video .es6' ;
2828import Twitter from './modules/twitter.es6' ;
29- import AudioEmbed from './modules/audio/audioEmbed.es6' ;
29+ import Audio from './modules/audio/audio.es6' ;
30+ import Image from './modules/image/image.es6' ;
3031
3132( function ( ) {
3233
@@ -47,6 +48,7 @@ import AudioEmbed from './modules/audio/audioEmbed.es6';
4748 align : 'none' ,
4849 lang : 'en'
4950 } ,
51+ imageEmbed : true ,
5052 excludeEmbed : [ ] ,
5153 codeEmbedHeight : 500 ,
5254 videoHeight : null ,
@@ -88,8 +90,9 @@ import AudioEmbed from './modules/audio/audioEmbed.es6';
8890 output = options . emoji ? await ( new Emoji ( output , options ) . process ( ) ) : output ;
8991 output = options . fontIcons ? await ( new Smiley ( output , options ) . process ( ) ) : output ;
9092 [ output , embeds ] = await ( new CodeEmbed ( input , output , options , embeds ) . process ( ) ) ;
91- [ output , embeds ] = await ( new VideoEmbed ( input , output , options , embeds ) . process ( ) ) ;
92- [ output , embeds ] = await ( new AudioEmbed ( input , output , options , embeds ) . process ( ) ) ;
93+ [ output , embeds ] = await ( new Video ( input , output , options , embeds ) . process ( ) ) ;
94+ [ output , embeds ] = await ( new Audio ( input , output , options , embeds ) . process ( ) ) ;
95+ [ output , embeds ] = await ( new Image ( input , output , options , embeds ) . process ( ) ) ;
9396 if ( options . tweetsEmbed ) {
9497 let twitter = new Twitter ( input , options , embeds ) ;
9598 embeds = options . tweetsEmbed ? await ( twitter . process ( ) ) : output ;
0 commit comments