Skip to content

Bug report: markdown docs are incorrectly stripped in help commands #3636

@milanholemans

Description

@milanholemans

Description

When using Node v14, I noticed that markdown docs are incorrectly escaped when using help commands. In Node v16 it works fine, however in Node v14 I get this:

image

As you can see, all code fences tags are not stripped from the output.
Tested it in node v14.20.0 & v14.18.1, both have the same issue. I haven't tested other frequently used node versions yet. Since Node v14 is still frequently used to develop SPFx solutions I don't think we should ignore this.

Steps to reproduce

  1. Install any version of Node v14
  2. Use any command followed by --help, e.g. m365 spo web get --help

Expected results

Markdown tags should be stripped from the printed help page.

Actual results

Markdown tags are visible in the printed help page.

Diagnostics

No response

CLI for Microsoft 365 version

v5.7.0

nodejs version

v14.20.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions