add custom css style to html slides

This commit is contained in:
jsz4n
2025-03-30 20:13:12 +02:00
parent 97197144bb
commit 711c4156a5
2 changed files with 107 additions and 1 deletions

View File

@@ -9,7 +9,10 @@ for filename in $*
do
echo compiling $filename
file_out=`echo $filename | sed -e 's/\.md/\.html/g'`
sed -e "s|SLIDEHEAD|$headEscapedForSed|g" $filename | pandoc -s --mathjax -t revealjs -o html/$file_out --slide-level=$SLIDE_LEVEL --highlight-style=$HIGHLIGHT_STYLE -V revealjs-url=https://unpkg.com/reveal.js@5.2.0 --template=./templates/template.revealjs
sed -e "s|SLIDEHEAD|$headEscapedForSed|g" $filename | pandoc -s --mathjax -t revealjs -o html/$file_out --slide-level=$SLIDE_LEVEL --highlight-style=$HIGHLIGHT_STYLE -V revealjs-url=https://unpkg.com/reveal.js@5.2.0 --template=./templates/template.revealjs --css custom.css
if [ -f ./templates/custom.css ]; then
cp ./templates/custom.css ./html/custom.css
fi
echo output $file_out
done