
The quick brown fox did what he always did
Get-ChildItem -Recurse -Filter *.rst | ForEach-Object {
$relative = $_.FullName.Substring($PWD.Path.Length + 1)
$out = Join-Path "md" ($relative -replace '\.rst$', '.md')
$outDir = Split-Path $out
New-Item -ItemType Directory -Force -Path $outDir | Out-Null
pandoc $_.FullName -f rst -t gfm -o $out
}