Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
gen_html () {
mkdir -p test_compile
file_name=$1
name="${1%.*}"
ext="${1##*.}"
echo "[${name}](./${name}.html)" >> index.md
echo "" >> index.md
pandoc -f markdown -t html --mathjax --metadata title="questions" -s -o ./test_compile/${name}.html $file_name