1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-05-11 17:34:56 +00:00

update bleach.clean tags

This commit is contained in:
skywalker 2024-08-20 17:32:46 +08:00
parent 3729e83a3d
commit cfd7002b14
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ from seahub.seadoc.utils import get_seadoc_file_uuid
logger = logging.getLogger(__name__)
# https://github.com/yourcelf/bleach-whitelist/blob/master/bleach_whitelist/bleach_whitelist.py#L61
markdown_tags = [
markdown_tags = {
"h1", "h2", "h3", "h4", "h5", "h6",
"b", "i", "strong", "em", "tt",
"p", "pre", "br",
@ -42,7 +42,7 @@ markdown_tags = [
"a",
"sub", "sup",
"table", "thead", "tbody", "tr", "th", "td",
]
}
markdown_attrs = {
"*": ["id", "class", "width", "height"],

View File

@ -4,6 +4,6 @@ mock
nose
exam
splinter
pytest
pytest==7.4.4
pytest-django
selenium