Fix issues with links, includes and notes in Sphinx .rst preview styling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user