Forum Discussion
my-kl
May 12, 2021Brass Contributor
Why does Teams always strip indentation when pasting text?
It's fairly common to want to post code in teams (without using the special formatting for code snippets). The markdown like syntax for code works pretty well when typing code and it preserves ind...
- May 14, 2021
my-kl
So I got to the heart of the matter. I used the Clipboard Inspector to inspect the contents of clipboard when copying the same text from two different apps. Both have two entries. One of the entries is text/html and one is text/plain. The text/plain as you might guess is identical. The html is quite different. I then copied the html and rendered.
This is what I see from TextEditThis is what I see from Visual Studio Code
So this would appear to be an issue with my environment in Visual Studio Code (or even a defect in Code, I"m not sure)
my-kl
May 14, 2021Brass Contributor
Using this website I was able to examine the clipboard data from TextEdit and Visual Studio code.
The text/plain entries look identical, but the text/html entries are radically different. That seems to be a clue.
The text/plain entries look identical, but the text/html entries are radically different. That seems to be a clue.
my-kl
May 14, 2021Brass Contributor
my-kl
So I got to the heart of the matter. I used the Clipboard Inspector to inspect the contents of clipboard when copying the same text from two different apps. Both have two entries. One of the entries is text/html and one is text/plain. The text/plain as you might guess is identical. The html is quite different. I then copied the html and rendered.
This is what I see from TextEdit
This is what I see from Visual Studio Code
So this would appear to be an issue with my environment in Visual Studio Code (or even a defect in Code, I"m not sure)
- my-klMay 16, 2021Brass ContributorThis can probably be closed. I've added details to an already opened issue on GitHub: https://github.com/microsoft/vscode/issues/122050#issuecomment-841814182
- michaelfsOct 14, 2021Copper Contributor
my-kl This definitely should not be closed, I do not use vscode and I still have the following issues on OSX\MSTeams:
1. no markdown support (some garbage WYSIWYG constantly interfering with my typing).
2. ``` no longer creates code blocks 90% of the time. In fact, the closing ``` becomes a weird empty code block more often than the opening code block ever works.
3. pretty much everything I paste into MSTeams has it's formatting removed, so nobody can read it.- my-klOct 14, 2021Brass Contributor
1. no markdown support (some garbage WYSIWYG constantly interfering with my typing).
2. ``` no longer creates code blocks 90% of the time. In fact, the closing ``` becomes a weird empty code block more often than the opening code block ever works.Seems like a different issue. I have found that markdown for code blocks doesn't work for me in "Chat" but works just fine in "Channels". I would have expected it to work everywhere.