Skip to content

Syntax block is not generated in HTML sometimes #7

Open
@dermeister0

Description

Test1 module:

function Invoke-TestCmdlet
{
    param
    (
        [Parameter(Mandatory = $true, HelpMessage = 'Only test.')]
        [string] $Path
    )
}

.\psDoc.ps1 Test1 -template .\out-html-template.ps1 -fileName Test1.html
http://screencast.com/t/tZxmSQ1FRiT

.\psDoc.ps1 Test1 -template .\out-markdown-template.ps1 -fileName Test1.md
http://screencast.com/t/6Wi2v7V0kR

It happens, because the block is ignored in out-html-template.ps1:

if (!($_.syntax | Out-String ).Trim().Contains('syntaxItem')) {

However, the Markdown implementation works fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions