microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
108.55k stars 6.41k forks source link

Advanced Paster error when using text from a Word File with "Title" style #33261

Open alanlivio opened 2 months ago

alanlivio commented 2 months ago

Microsoft PowerToys version

0.81.1

Installation method

WinGet

Running as admin

Yes

Area(s) with issue?

Advanced Paste

Steps to reproduce

  1. open a MS Word file
  2. create a text (e.g. TEXT) with a Title style and copy it
  3. paste as markdown in a text editor (e.g., VScode)

✔️ Expected Behavior

It should paste the lines:

TEXT
===

❌ Actual Behavior

It currently pastes the lines:

TEXT
 <![if !supportLineBreakNewLine]>  
 <![endif]>

Other Software

No response

joadoumie commented 2 months ago

This is a good example for why we may need more specific paste actions because the clipboard contents is showing multiple things I'd imagine.

I'm going to leave this open as a bug and reference it in a separate issue I'm using to keep track of some improvement ideas.

Thanks for the feedback here.