Skip to content

Cannot output HTML from PowerShell #3509

@thgla

Description

@thgla

Describe the bug

Outputting HTML from a PowerShell code block does not work currently, it just outputs the raw HTML without any formatting. It does work with other languages, such as C#. Outputting HTML from PowerShell is in the official samples, so I imagine it worked at some point.

I am on VS Code 1.88.0. Please see the screenshot highlighting the issue.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

Version: 1.0.520401+0d5f733dea8c25d8b9abeafa66f1c79828f447c9
Library version: 1.0.0-beta.24204.1+0d5f733dea8c25d8b9abeafa66f1c79828f447c9
Build date: 2024-04-05T09:11:47.6758066Z
  • OS
    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FormattingData and object formatting as HTML and plaintextArea-PowerShellSpecific to PowerShellbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions