mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-19 15:38:38 +00:00
update bleach.clean tags
This commit is contained in:
parent
3729e83a3d
commit
cfd7002b14
@ -32,7 +32,7 @@ from seahub.seadoc.utils import get_seadoc_file_uuid
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
# https://github.com/yourcelf/bleach-whitelist/blob/master/bleach_whitelist/bleach_whitelist.py#L61
|
# https://github.com/yourcelf/bleach-whitelist/blob/master/bleach_whitelist/bleach_whitelist.py#L61
|
||||||
markdown_tags = [
|
markdown_tags = {
|
||||||
"h1", "h2", "h3", "h4", "h5", "h6",
|
"h1", "h2", "h3", "h4", "h5", "h6",
|
||||||
"b", "i", "strong", "em", "tt",
|
"b", "i", "strong", "em", "tt",
|
||||||
"p", "pre", "br",
|
"p", "pre", "br",
|
||||||
@ -42,7 +42,7 @@ markdown_tags = [
|
|||||||
"a",
|
"a",
|
||||||
"sub", "sup",
|
"sub", "sup",
|
||||||
"table", "thead", "tbody", "tr", "th", "td",
|
"table", "thead", "tbody", "tr", "th", "td",
|
||||||
]
|
}
|
||||||
|
|
||||||
markdown_attrs = {
|
markdown_attrs = {
|
||||||
"*": ["id", "class", "width", "height"],
|
"*": ["id", "class", "width", "height"],
|
||||||
|
@ -4,6 +4,6 @@ mock
|
|||||||
nose
|
nose
|
||||||
exam
|
exam
|
||||||
splinter
|
splinter
|
||||||
pytest
|
pytest==7.4.4
|
||||||
pytest-django
|
pytest-django
|
||||||
selenium
|
selenium
|
||||||
|
Loading…
Reference in New Issue
Block a user