In the Preview Mode, tabs inside of the code blocks are replaced with spaces (copy code)

Steps to reproduce

  • Create a new file.
  • Add a codeblock that contains tabs at the beginning of the code lines (inside ```'s).
  • Switch to preview mode.
  • Copy the code inside of the code block.

Expected result

Code is copied just as it was in the obsidian document, tabs are copied as tabs.

Actual result

Instead, tabs are replaced with spaces. That is extremely inconvenient, because it makes it impossible to copy the code from the preview mode, and paste it into the code editor.

Environment

Any.

Thanks

will be fixed 0.12.20

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.