Skip to content

Code blocks not allowed in DESCRIPTION #472

@jazzdelightsme

Description

@jazzdelightsme

(and I think they should be allowed)

Steps to reproduce

In a ## DESCRIPTION section, add a fenced code block (I think that's what they're called: when you have a line with three backticks, then some lines of code, then another line with three backticks).

Expected behavior

The New-ExternalHelp command should succeed.

Actual behavior

The New-ExternalHelp command throws an error:

ForEach-Object : Exception calling "NodeModelToMamlModel" with "1" argument(s): "E:\temp\blah\Send-Feedback.md:17:(41) '```
    PS\> Send-Feedback "messsage"
    or, ...'
 Expect Heading"
At C:\Users\blah\Documents\PowerShell\Modules\platyps\0.14.0\platyPS.psm1:1564 char:22
+     $markdownFiles | ForEach-Object {
+                      ~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [ForEach-Object], MethodInvocationException
+ FullyQualifiedErrorId : HelpSchemaException,Microsoft.PowerShell.Commands.ForEachObjectCommand

Environment data

v0.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-MAMLIssue concerns conversion to MAML

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions