如何使用powershell将HTML转换为Markdown? 是否有可能在不使用丑陋结构的情况下将其转换为:
$content = $content -replace "<em>", "*"
$content = $content -replace "</em>", "*"
$content = $content -replace "<b>", "**"
$content = $content -replace "</b>", "**"
$content = $content -replace "<strong>", "**"
$content = $content -replace "</strong>", "**"
$content = $content -replace """, "'"
$content = $content -replace '<i>'
$content = $content -replace '</i>'
尝试 HtmlToMarkdown 1.0.0,这是一个将 HTML 转换为 Markdown/CommonMark 的 PowerShell 实用程序: