Fix issues with links, includes and notes in Sphinx .rst preview styling
This commit is contained in:
parent
c676b7b76c
commit
da950a93e2
3 changed files with 37 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue