Let's try this forgejo settings file
This commit is contained in:
parent
38d203c1d4
commit
b55351a6f2
|
@ -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 = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue