Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions django_markdown/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from django import VERSION
from django.template import loader
from django.utils.encoding import force_text
from django.utils.encoding import force_str
from django.utils.safestring import mark_safe

from . import settings
Expand Down Expand Up @@ -35,7 +35,7 @@ def markdown(value, extensions=settings.MARKDOWN_EXTENSIONS,

"""
return mark_safe(markdown_module.markdown(
force_text(value), extensions=extensions,
force_str(value), extensions=extensions,
extension_configs=extension_configs, safe_mode=safe))


Expand Down
37 changes: 37 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ envlist=
py36-d20
py36-d21
py36-d22
py36-d30
py36-d31
py36-d32
py38-d40
py38-d41
py38-d42
cov
flake8

[tox:travis]
3.6 = py36, cov
3.7 = py37
3.8 = py38

[pylama]
skip=example/*
Expand Down Expand Up @@ -53,6 +60,36 @@ deps =
django<=2.3
{[testenv]deps}

[testenv:py36-d30]
deps =
django<3.1
{[testenv]deps}

[testenv:py36-d31]
deps =
django<3.2
{[testenv]deps}

[testenv:py36-d32]
deps =
django<3.3
{[testenv]deps}

[testenv:py38-d40]
deps =
django<4.1
{[testenv]deps}

[testenv:py38-d41]
deps =
django<=4.2
{[testenv]deps}

[testenv:py38-d42]
deps =
django<4.3
{[testenv]deps}

[testenv:cov]
deps =
coverage
Expand Down