Skip to content

Instantly share code, notes, and snippets.

View fluffy-cakes's full-sized avatar

Fluffy-Cakes fluffy-cakes

View GitHub Profile
@fluffy-cakes
fluffy-cakes / ConvertTo-Markdown.ps1
Created January 26, 2021 16:44 — forked from jdhitsolutions/ConvertTo-Markdown.ps1
Convert pipeline output to a markdown document
#requires -version 5.0
Function ConvertTo-Markdown {
<#
.Synopsis
Convert pipeline output to a markdown document.
.Description
This command is designed to accept pipelined output and create a markdown document. The pipeline output will formatted as a text block. You can optionally define a title, content to appear before the output and content to appear after the output.
The command does not create a text file. You need to pipe results from this command to a cmdlet like Out-File or Set-Content. See examples.
.Parameter Title