Skip to content

Set-MarkdownParagraph

SYNOPSIS

Generates a Markdown paragraph.

SYNTAX

Set-MarkdownParagraph [-Content] <ScriptBlock> [-Tags] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

This function captures the output of the provided script block and formats it as a Markdown paragraph. It trims trailing whitespace and surrounds the content with blank lines to ensure proper Markdown formatting.

EXAMPLES

EXAMPLE 1

Paragraph {
    "This is a simple Markdown paragraph generated dynamically."
}

Output:


This is a simple Markdown paragraph generated dynamically.

EXAMPLE 2

Paragraph {
    "This is a simple Markdown paragraph generated dynamically."
} -Tags

Output:

<p>

This is a simple Markdown paragraph generated dynamically.

</p>

Generates a Markdown paragraph with the specified content.

PARAMETERS

-Content

{{ Fill Content Description }}

Type: ScriptBlock
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Tags

{{ Fill Tags Description }}

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

string

NOTES

Returns the formatted Markdown paragraph as a string.

https://psmodule.io/Markdown/Functions/Set-MarkdownParagraph/