py3: read sqlite3 data as bytes
The py2 and py3 docs ([1] and [2]) disagree how to get bytes output,
but it seems obvious that this should be "bytes" to be compatible with
both.
[1] https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.text_factory
[2] https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.text_factory
#!/bin/bash
set -eox pipefail
function compile {
pandoc \
-s $1 \
-o $2 \
--toc --toc-depth=4 \
-F pandocfilters/examples/graphviz.py -F mypandocfilters/graphviz-file.py -F mypandocfilters/raw-file.py \
-t html5 \
--template standalone.html --variable=template_css:uikit.css
}
compile slides.md index.html