Skip to content

Instantly share code, notes, and snippets.

@fordnox
Created June 30, 2023 07:35
Show Gist options
  • Select an option

  • Save fordnox/699a60931f4405bd09c0268e4915a0e3 to your computer and use it in GitHub Desktop.

Select an option

Save fordnox/699a60931f4405bd09c0268e4915a0e3 to your computer and use it in GitHub Desktop.

Revisions

  1. fordnox created this gist Jun 30, 2023.
    2 changes: 2 additions & 0 deletions convert-md-html.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    find ./content -name '*.md' | xargs -n 1 bash -c 'pandoc -f markdown -t html -o "${1/.md/.htm}" "${1}"' -
    find ./content -name '*.md' -exec rm {} \;