4 ms·
Here is the shortest I can get while keeping markdown support - 3 lines, with 1 dependency: for file in *.md; do pandoc --quiet --template layout.html $f
by malkosta 5y ago
Here is the shortest I can get while keeping markdown support - 3 lines, with 1 dependency:
for file in *.md; do
pandoc --quiet --template layout.html $file -o "${file%.*}.html"
done
- marginalia_nu 5y agoYou're wearing out your enter key my man $ find -maxdepth 0 -name \*md -exec sh -c 'pandoc --quiet --template layout.html "$0" -o ${0%.*}.html' {} \;
- malkosta 5y agoHahaha cool!