diff --git a/nixos/server/package-configs/forgejo/default.nix b/nixos/server/package-configs/forgejo/default.nix index 3a4b676..f5f6157 100644 --- a/nixos/server/package-configs/forgejo/default.nix +++ b/nixos/server/package-configs/forgejo/default.nix @@ -64,24 +64,18 @@ ROOT_URL = "https://git.lillianviolet.dev/"; HTTP_PORT = 3218; }; - markup.jupyter = " + markup.jupyter = { ENABLED = true; - FILE_EXTENSIONS = .ipynb - RENDER_COMMAND = ${pkgs.jupyter}/bin/jupyter nbconvert --stdout --to html --template full - IS_INPUT_FILE = true - RENDER_CONTENT_MODE = no-sanitizer - - - - ; the name after sanitizer doesn't really matter - [markup.sanitizer.jupyter0] - ; Jupyter chiefly uses divs - ELEMENT = div - ; we will need access to html classes later - ALLOW_ATTR = class - ; we don't mind which classes we keep, so let's keep all of them - REGEXP = - "; + FILE_EXTENSIONS = ".ipynb"; + RENDER_COMMAND = "${pkgs.jupyter}/bin/jupyter nbconvert --stdout --to html --template full"; + IS_INPUT_FILE = true; + RENDER_CONTENT_MODE = "no-sanitizer"; + }; + markup.sanitizer.jupyter0 = { + ELEMENT = "div"; + ALLOW_ATTR = "class"; + REGEXP = ""; + }; }; };