initial commit
This commit is contained in:
commit
eaee0782d7
2 changed files with 14 additions and 0 deletions
11
st.sh
Normal file
11
st.sh
Normal file
|
|
@ -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
|
||||||
3
style.css
Normal file
3
style.css
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
body {
|
||||||
|
font-family: helvetica
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue