Coverage for src/backend/InvenTree/InvenTree/setting/markdown.py: 100%
2 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 17:47 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 17:47 +0000
1"""Configuration options for django-markdownify.
3Ref: https://django-markdownify.readthedocs.io/en/latest/settings.html
4"""
7def markdownify_config():
8 """Return configuration dictionary for django-markdownify."""
9 return {
10 'default': {
11 'BLEACH': True,
12 'WHITELIST_ATTRS': ['href', 'src', 'alt'],
13 'MARKDOWN_EXTENSIONS': ['markdown.extensions.extra'],
14 'WHITELIST_TAGS': [
15 'a',
16 'abbr',
17 'b',
18 'blockquote',
19 'code',
20 'em',
21 'h1',
22 'h2',
23 'h3',
24 'h4',
25 'h5',
26 'hr',
27 'i',
28 'img',
29 'li',
30 'ol',
31 'p',
32 'pre',
33 's',
34 'strong',
35 'table',
36 'thead',
37 'tbody',
38 'th',
39 'tr',
40 'td',
41 'ul',
42 ],
43 }
44 }