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/";
|
ROOT_URL = "https://git.lillianviolet.dev/";
|
||||||
HTTP_PORT = 3218;
|
HTTP_PORT = 3218;
|
||||||
};
|
};
|
||||||
markup.jupyter = "
|
markup.jupyter = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
FILE_EXTENSIONS = .ipynb
|
FILE_EXTENSIONS = ".ipynb";
|
||||||
RENDER_COMMAND = ${pkgs.jupyter}/bin/jupyter nbconvert --stdout --to html --template full
|
RENDER_COMMAND = "${pkgs.jupyter}/bin/jupyter nbconvert --stdout --to html --template full";
|
||||||
IS_INPUT_FILE = true
|
IS_INPUT_FILE = true;
|
||||||
RENDER_CONTENT_MODE = no-sanitizer
|
RENDER_CONTENT_MODE = "no-sanitizer";
|
||||||
|
};
|
||||||
|
markup.sanitizer.jupyter0 = {
|
||||||
|
ELEMENT = "div";
|
||||||
; the name after sanitizer doesn't really matter
|
ALLOW_ATTR = "class";
|
||||||
[markup.sanitizer.jupyter0]
|
REGEXP = "";
|
||||||
; 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 =
|
|
||||||
";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue