

Note that it will use your systems default browser, in this example Google Chrome. Not the prettiest markdown rendering, but it gets the job done. I can safely say, the strange kinks seem to have been worked out!ĬonvertFrom-Markdown -Path '.\_posts\-PowerShell-Markdown.md' | Show-Markdown -UseBrowser

When I originally wrote this, the feel of the commands felt very -beta-ish. I wanted to give this feature the justice it deserved. I noticed this post got shared on Y-Cominator Hacker News and a Github issue, so if you are browsing in from there, quirks 2 and 3 from the original post should no longer be valid! Quirk 2 - ConvertFrom-Markdown Console Text Issue.If you read the patch notes ( also written in markdown) for PowerShell Core 6.1.0 Preview 4 you’ll find the exciting new news! Under the “General Cmdlet Updates and Fixes” section there is a bullet for “ Add Markdown rendering Cmdlets ( #6926)”. Places like VSTS, Github repository documentation, comment sections on sites Github or Reddit, and even the engine for this blog uses markdown files for posts! If you aren’t familiar with markdown, you probably have seen it without even realizing yet. You’ll find markdown just about everywhere these days. Markdown is a great way to document, well anything! If you haven’t had a chance to write it yet a time will probably come sooner than later when you’ll have a case to use it.
