< Back

Convert-ADSPowerShellForMarkdown

Fri Jan 10, 2020 7:35 pm

NAME Convert-ADSPowerShellForMarkdown



SYNOPSIS

Converts PowerShell code into valid Markdown URI Link text





SYNTAX

Convert-ADSPowerShellForMarkdown [-InputString] <String> [[-LinkText] <String>] [-ToClipBoard] [<CommonParameters>]





DESCRIPTION

Converts PowerShell code into valid Markdown URI Link Text





PARAMETERS

-InputString <String>

The PowerShell to encode. IMPORTANT escap $ with a `



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LinkText <String>

The text to show for the link



Required? false

Position? 2

Default value LINK TEXT HERE

Accept pipeline input? false

Accept wildcard characters? false



-ToClipBoard [<SwitchParameter>]

Will not output to screen but instead will set the clipboard



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.String





NOTES





June 2019 - Rob Sewell @SQLDbaWithBeard

SQLDBAWithABeard.Com



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Convert-ADSPowerShellForMarkdown -InputText "Get-ChildItem" -LinkText 'This will list the files'

-ToClipBoard



Converts the PowerShell so that it works with MarkDown and sets it to the clipboard











RELATED LINKS