Vscode-powershell: Notebook Mode: The comment block is not recognized as a Markdown block

Created on 31 Jul 2020  路  8Comments  路  Source: PowerShell/vscode-powershell

Well, can I post any feedback on the Notebook mode that Tyler Leonhardt has posted on the PowerShell blog?
https://devblogs.microsoft.com/powershell/public-preview-of-notebook-mode-in-the-powershell-preview-extension-for-visual-studio-code/

Issue Description

The comment block style that our team normally uses doesn't seem to be correctly parsed as a Markdown block in the Nodebook mode.

<# =========================
# Write comment here
============================ #>

I hope this is improved.

Text mode

image

Notebook mode

image

Area-Notebooks Issue-Bug

All 8 comments

That's odd. That should work. Do normal block comments work?

<#
Foo
#>

Hi @TylerLeonhardt
Yes, normal block comments are working fine.

note

What about this one:

<# x
 # Comment
#>

or this one:

<#
 # Comment
x #>

Or

<#
 # Comment
    #>

(Spacing before the end delimiter)

I bet the first case is broken

Unfortunately, this is not good in all three cases.
Is this an issue specific to my environment? Is everyone OK?

Case 1

case1

Case 2

case2

Case 3

case3

Is this an issue specific to my environment?

It's a general bug that we'll fix in the next update. For now cells must start with the line <# and end with the line #>

Yep, should be a straightforward fix and you've given us a great test case :)

Was this page helpful?
0 / 5 - 0 ratings