From f601854156bb0d573f20cd512f86d815f638510e Mon Sep 17 00:00:00 2001 From: Asmir A Date: Thu, 5 Dec 2024 11:06:43 +0100 Subject: [PATCH] magpie/gitea: add typst syntax higlight --- magpie/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/magpie/configuration.nix b/magpie/configuration.nix index 0be5475..bdecd16 100644 --- a/magpie/configuration.nix +++ b/magpie/configuration.nix @@ -245,6 +245,13 @@ RENDER_COMMAND = "${docutils}/bin/rst2html.py"; IS_INPUT_FILE = false; }; + + settings."markup.typst" = { + ENABLED = true; + FILE_EXTENSIONS = ".typ"; + RENDER_COMMAND = "timeout 30s ${lib.getExe pkgs.python3Packages.pygments} -f html -O full"; + IS_INPUT_FILE = false; + }; }; services.nfs.server.enable = false;