commit eaee0782d77799e8fc95efc18ac79a9cc46157db Author: quenousimporte Date: Wed Mar 20 21:14:12 2024 +0100 initial commit diff --git a/st.sh b/st.sh new file mode 100644 index 0000000..e08ff73 --- /dev/null +++ b/st.sh @@ -0,0 +1,11 @@ +input=. +output=./out +outformat=markdown+hard_line_breaks+autolink_bare_uris+lists_without_preceding_blankline +rm -rf $output/* + +cp style.css $output/style.css +for f in $input/*.md +do + f=${f##*/} + sed 's/\[\[\(.*\)\]\]/\[\1\](\1.html)/g' "$input/$f" | pandoc -f $outformat --metadata title="${f%.md}" --standalone --css=style.css -o "$output/${f%.md}.html" +done \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..d66d15d --- /dev/null +++ b/style.css @@ -0,0 +1,3 @@ +body { + font-family: helvetica +} \ No newline at end of file