--- /dev/null
+
+
+## Markdown to PDF
+
+The usual VSCode plugins add a lot of weird junk (telemetry, perhaps), so I decided to start using brute force and minimal `GoLang` code to convert my Markdown into HTML.
+
+### Setup
+
+```powershell
+go install github.com/gomarkdown/mdtohtml@latest
+mdtohtml -h
+```
+
+### Generate document
+
+```powershell
+mdtohtml.exe -css https://edward.delaporte.us/css/edthedev.css .\Dashboard.md > Dashboard.html
+```
+
+VSCode Settings:
+```json
+"command-runner.terminal.name": "runCommand",
+"command-runner.terminal.autoClear": true,
+"command-runner.terminal.autoFocus": true,
+"command-runner.commands": {
+ "markdown to HTML": "mdtohtml.exe -css https://edward.delaporte.us/css/edthedev.css ${file} > ${file}.html",
+ "HTML to PDF": "wkhtmltopdf.exe ${file}.html ${file}.pdf",
+},
+```
+
+Then `Ctrl+Shift+P`, `Run Command` and select `markdown to HTML`.
+
+## Markdown to PDF
+
+### Setup
+
+Install `wkhtml2pdf.exe` somewhere on my path.
+
+### Use
+
+```powershell
+wkhtmltopdf.exe .\Dashboard.md.html dash.pdf
+```
\ No newline at end of file
# You can pry my unix commands out of my cold dead fingers
Set-Alias which get-command
# Reject Windows heritage, act like Vi
-Set-PSReadlineOption -HistorySavePath $env:src\PSHistory.log
+# Set-PSReadlineOption -HistorySavePath $env:src\PSHistory.log
Set-PSReadlineOption -BellStyle Visual
Set-PSReadlineOption -ViModeIndicator Prompt
Set-PSReadlineOption -EditMode Vi
Add-ToPath "$env:src\x16-demo\tools" -optional # x16 python tools
Add-ToPath "$env:src\flutter\bin" -optional # Flutter for Dart
Add-ToPath "$env:src\bin" -optional # anything else I need
+ Add-ToPath "$HOME\bin" -optional # anything else I need
}
else {
Add-ToPath "$env:src/bin" -optional # anything else I need
+ Add-ToPath "$HOME\bin" -optional # anything else I need
Add-ToPath "$HOME/x16/x16-emulator" -optional # x16 Emulator
Add-ToPath "$HOME/src/x16-demo/tools" -optional # x16 python tools
}