Skip to content

Instantly share code, notes, and snippets.

@sheldonhull
Created August 5, 2021 17:36
Show Gist options
  • Save sheldonhull/616dd6186d0ba061d175ba6f5c6623c8 to your computer and use it in GitHub Desktop.
Save sheldonhull/616dd6186d0ba061d175ba6f5c6623c8 to your computer and use it in GitHub Desktop.
[Use GM to render a markdown] #go #markdown
# choco install go -y
# brew install go
# should use latest to simplify go install commands.
go install github.com/kpym/gm@latest
# help
&"$ENV:HOME/go/bin/gm" -h
# serve
&"$ENV:HOME/go/bin/gm" --serve $MarkdownFilePath
# convert
&"$ENV:HOME/go/bin/gm" $MarkdownFilePath --outdir ./artifacts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment