Relaxed required versions of all our dependencies

Some packages were upgraded; the rename from `CommonMark` to `commonmark`
was the only change breaking the unit tests.
This commit is contained in:
2019-05-10 16:17:02 +02:00
parent 90e5868b31
commit b66247881b
3 changed files with 212 additions and 146 deletions

View File

@@ -4,7 +4,7 @@ This is for user-generated stuff, like comments.
"""
import bleach
import CommonMark
import commonmark
from . import shortcodes
@@ -44,7 +44,7 @@ ALLOWED_STYLES = [
def markdown(s: str) -> str:
commented_shortcodes = shortcodes.comment_shortcodes(s)
tainted_html = CommonMark.commonmark(commented_shortcodes)
tainted_html = commonmark.commonmark(commented_shortcodes)
# Create a Cleaner that supports parsing of bare links (see filters).
cleaner = bleach.Cleaner(tags=ALLOWED_TAGS,