File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11# Change Log
22All notable changes to the "markdown-image" extension will be documented in this file.
33
4+ ## [ 1.1.48] - 2025-02-11
5+
6+ ### Fixed
7+ - Fixed transparent background turning black when copy png Image on paste.
8+
49## [ 1.1.47] - 2025-02-08
510
611### Fixed
Original file line number Diff line number Diff line change 11param ($imagePath )
22
33# Adapted from https://github.com/octan3/img-clipboard-dump/blob/master/dump-clipboard-png.ps1
4- chcp 65001
4+ chcp 65001 | Out-Null
55
66Add-Type - Assembly PresentationCore
77
Original file line number Diff line number Diff line change 22 "name" : " markdown-image" ,
33 "displayName" : " Markdown Image" ,
44 "description" : " Easy to insert a image to markdown" ,
5- "version" : " 1.1.47 " ,
5+ "version" : " 1.1.48 " ,
66 "publisher" : " hancel" ,
77 "engines" : {
88 "vscode" : " ^1.62.0"
Original file line number Diff line number Diff line change @@ -312,12 +312,13 @@ function getPasteImage (imagePath: string): Promise<string[]> {
312312 // console.debug('exit', code, signal);
313313 } ) ;
314314 powershell . stdout . on ( 'data' , ( data ) => {
315- data . toString ( ) . split ( '\n' ) . forEach ( d => output += ( d . indexOf ( 'Active code page:' ) < 0 ? d + '\n' : '' ) ) ;
315+ output += data . toString ( ) ;
316316 clearTimeout ( timer ) ;
317317 timer = setTimeout ( ( ) => powershell . kill ( ) , 2000 ) ;
318318 } ) ;
319319 powershell . on ( 'close' , ( code ) => {
320320 resolve ( output . trim ( ) . split ( '\n' ) . map ( i => i . trim ( ) ) ) ;
321+ clearTimeout ( timer ) ;
321322 } ) ;
322323 }
323324 else if ( platform === 'darwin' ) {
You canβt perform that action at this time.
0 commit comments