mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Update Bleach, add linkification to clean()
Update Bleach, add linkification to clean()
Bleach supports adding html5lib filters to the cleaning process, which is how its linkify() process works, as well as being how I implemented the custom Tildes linkification for usernames and group names. This commit switches to adding those filters into the clean() call, which makes it so everything is now done in a single pass instead of three. In addition, this also fixes the issues we were having with bleach "fixing" things that it thought were invalid HTML (when they were just people writing things inside angle brackets).merge-requests/51/head
Deimos
6 years ago
4 changed files with 39 additions and 42 deletions
-
2tildes/requirements-to-freeze.txt
-
2tildes/requirements.txt
-
21tildes/tests/test_markdown.py
-
56tildes/tildes/lib/markdown.py
Write
Preview
Loading…
Cancel
Save
Reference in new issue