PowerShell/platyPS

Syntax code fence should have language specified

ThomasNieto opened this issue · 1 comments

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

Markdown lint MD40 specifies that a code fence should have a language specified. In the syntax code fence since it doesn't follow PowerShell syntax exactly the code fence should be text to not have syntax highlighting.

To resolve this issue I believe the only change is this line.

AddCodeSnippet(GetSyntaxString(command, syntax));

It needs to have the language specified.

AddCodeSnippet(GetSyntaxString(command, syntax), "text");

Expected behavior

Syntax code fences have `text` language

Actual behavior

No code fence language is specified

Error details

No response

Environment data

platyPS
7.4-preview2

Visuals

No response

Closing duplicate of #495