template structure
This commit is contained in:
8
scripts/slides_to_html.sh
Executable file
8
scripts/slides_to_html.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#! /usr/bin/env bash
|
||||
HIGHLIGHT_STYLE=tango
|
||||
SLIDE_LEVEL=2
|
||||
|
||||
my_header=$(<./templates/html_header.md)
|
||||
headEscapedForSed=${my_header//$'\n'/\\$'\n'}
|
||||
|
||||
sed -e "s|SLIDEHEAD|$headEscapedForSed|g" slides.md | pandoc -s --mathjax -t revealjs -o html/slides.html --slide-level=$SLIDE_LEVEL --highlight-style=$HIGHLIGHT_STYLE -V revealjs-url=https://unpkg.com/reveal.js@5.0.0 --template=./templates/template.revealjs
|
||||
Reference in New Issue
Block a user