Re:Get Static
by dgellow on Monday March 23, 2020 @08:51AM
(#22663563)
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.
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...
ConvertFrom-Markdown: https://docs.microsoft.com/en-us/powershell/module/microsoft...