1
0
Fork 0

Fix issues with links, includes and notes in Sphinx .rst preview styling

This commit is contained in:
Brecht Van Lommel 2023-03-14 00:58:31 +01:00
commit da950a93e2
3 changed files with 37 additions and 4 deletions

View file

@ -18,6 +18,11 @@ Add to Gitea app.ini.
RENDER_COMMAND = "timeout 30s ./custom/sphinx/sphinx_to_html.py --user sphinx --user-work-dir /path/to/dir"
IS_INPUT_FILE = true
[markup.sanitizer.restructuredtext]
ELEMENT = div
ALLOW_ATTR = class
REGEXP = ^(restructuredtext)$
[repository.editor]
LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,.rst
PREVIEWABLE_FILE_MODES = markdown,restructuredtext