Hacker News new | ask | show | jobs
by malkosta 33 days ago
mine is:

find . -name '*.md' -type f -exec sh -c '

  for file do  
    out="docs/${file#./}"  
    out="${out%.md}.html"
    mkdir -p "$(dirname "$out")"  
    pandoc --quiet --template template.html "$file" -o "$out"  
  done  
' sh {} +
1 comments

The only issue is pandoc is a pretty heavy dep. A fantastic tool, but a very heavy one.
yes true, but I already have it on all my machines, for diverse reasons...it wouldn't be hard to implement a markdown support, but it would be worse to maintain that