3 ms·
Something I found during the weekend, if you have PowerShell available (so any Windows machine, or any macOS with brew installed, or linux if you're willing to
by dgellow 7y ago
Something I found during the weekend, if you have PowerShell available (so any Windows machine, or any macOS with brew installed, or linux if you're willing to add a pkg source from microsoft):
1. Take a Markdown document
2. In PowerShell: ConvertTo-Html -Body (ConvertFrom-Markdown -Path .\README.md).Html -CssUri "stylesheet.css"
That results in a complete and valid HMTL document that can be published anywhere with its assets.
ConvertTo-Html: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/convertto-html?view=powershell-7 https://docs.microsoft.com/en-us/powershell/module/microsoft...
ConvertFrom-Markdown: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/convertfrom-markdown?view=powershell-7 https://docs.microsoft.com/en-us/powershell/module/microsoft...
- deleted 7y ago[deleted]