microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.58k stars 903 forks source link

Convert Cell does not clear html #17566

Open rajeshka opened 3 years ago

rajeshka commented 3 years ago

Steps to Reproduce:

  1. Use the attached sample notebook file and Convert Cell convertcell

Notebook-0.zip

chlafreniere commented 3 years ago

Hi @rajeshka, convert cell takes the cell contents and just changes the cell type from markdown --> code (or vice versa).

I'm a little confused what you'd like it to do here. Can you elaborate? The span exists since there's a non-default font color. If you were to click convert cell one more time, it's expected that it should render the same as it does originally.

rajeshka commented 3 years ago

Hi @rajeshka, convert cell takes the cell contents and just changes the cell type from markdown --> code (or vice versa).

I'm a little confused what you'd like it to do here. Can you elaborate? The span exists since there's a non-default font color. If you were to click convert cell one more time, it's expected that it should render the same as it does originally.

@chlafreniere - The expectation is that only text remains. i.e. whatever is visible in WYSIWYG mode. So for above example it should be

MondayStatus | order by StartTime desc