Skip to content

Set-MarkdownParagraph

SYNOPSIS

Generates a Markdown paragraph.

SYNTAX

__AllParameterSets

Set-MarkdownParagraph [-Content] <scriptblock> [-Tags] [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

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: System.Management.Automation.ScriptBlock
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Tags

{{ Fill Tags Description }}

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

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

INPUTS

OUTPUTS

string

{{ Fill in the Description }}

System.String

{{ Fill in the Description }}

NOTES

Returns the formatted Markdown paragraph as a string.