Skip to content

Syntax code fence should have language specified #599

Closed as not planned
Closed as not planned
@ThomasNieto

Description

@ThomasNieto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions