Sebastian Walz 9f7b02e1cd
Tohu vaBohu
2023-04-03 14:38:02 +02:00

26 lines
549 B
Nix

{ core, ... } @ libs:
let
inherit(core) library;
getFormat
= outputFormat:
if outputFormat != null
then
outputFormat
else
"tex";
renderTex = library.import ./tex libs;
in
{
evaluationOrder
= [
"slides"
"extra"
];
render
= outputFormat:
{
"tex" = renderTex;
"markdown" = foo: [];
}.${getFormat outputFormat};
}