Compare commits
No commits in common. "0ca50252dd383f4aa0c765af9fb8ab7bbe8df456" and "37d5a7a20d3f07aaa8a4041cd3e6092789c1e6d1" have entirely different histories.
0ca50252dd
...
37d5a7a20d
4 changed files with 674 additions and 872 deletions
5
Pipfile
5
Pipfile
|
@ -56,8 +56,3 @@ pytest-django = "*"
|
|||
werkzeug = "*"
|
||||
watchdog = "*"
|
||||
mypy = "*"
|
||||
types-pyyaml = "*"
|
||||
types-requests = "*"
|
||||
types-python-slugify = "*"
|
||||
types-bleach = "*"
|
||||
types-markdown = "*"
|
||||
|
|
1525
Pipfile.lock
generated
1525
Pipfile.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -5,10 +5,10 @@ from jinja2 import evalcontextfilter, Markup
|
|||
TAGS = ['cite', 'code', 'details', 'p', 'pre', 'img', 'span', 'summary']
|
||||
TAGS.extend(ALLOWED_TAGS)
|
||||
ATTRIBUTES = {
|
||||
'a': ['href', 'title', 'class'],
|
||||
'details': ['open'],
|
||||
'img': ['alt', 'src', 'title'],
|
||||
'span': ['class'],
|
||||
'a': ('href', 'title', 'class'),
|
||||
'details': ('open',),
|
||||
'img': ('alt', 'src', 'title'),
|
||||
'span': ('class',),
|
||||
}
|
||||
|
||||
cleaner = Cleaner(tags=TAGS, attributes=ATTRIBUTES, filters=(LinkifyFilter,))
|
||||
|
|
|
@ -8,10 +8,10 @@ from bleach.linkifier import LinkifyFilter
|
|||
tags = ['cite', 'code', 'details', 'p', 'pre', 'img', 'span', 'summary']
|
||||
tags.extend(ALLOWED_TAGS)
|
||||
attributes = {
|
||||
'a': ['href', 'title', 'class'],
|
||||
'details': ['open'],
|
||||
'img': ['alt', 'src', 'title'],
|
||||
'span': ['class'],
|
||||
'a': ('href', 'title', 'class'),
|
||||
'details': ('open',),
|
||||
'img': ('alt', 'src', 'title'),
|
||||
'span': ('class',),
|
||||
}
|
||||
|
||||
register = template.Library()
|
||||
|
|
Loading…
Reference in a new issue