-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move away from commonmark and add python 3.10 support (#240)
* Replace commonmark with markdown-it and remove django-markwhat dependency Fix #227 * Add support to python 3.10 * Rename pre-release.sh to update-requirements-txt.sh
- Loading branch information
Showing
11 changed files
with
180 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from django import template | ||
from django.utils.safestring import mark_safe | ||
|
||
from markdown_it import MarkdownIt | ||
|
||
register = template.Library() | ||
md = MarkdownIt() | ||
|
||
|
||
@register.filter(is_safe=True) | ||
def commonmark(value): | ||
return mark_safe(md.render(value)) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
asgiref==3.5.2 ; python_version >= "3.9" and python_version < "4.0" | ||
bleach==5.0.1 ; python_version >= "3.9" and python_version < "4.0" | ||
certifi==2022.6.15 ; python_version >= "3.9" and python_version < "4.0" | ||
charset-normalizer==2.0.12 ; python_version >= "3.9" and python_version < "4.0" | ||
commonmark==0.9.1 ; python_version >= "3.9" and python_version < "4.0" | ||
django-appconf==1.0.5 ; python_version >= "3.9" and python_version < "4.0" | ||
django-bleach==0.3.0 ; python_version >= "3.9" and python_version < "4.0" | ||
django-bootstrap-static==3.3.7.2 ; python_version >= "3.9" and python_version < "4.0" | ||
django-crispy-forms==1.9.1 ; python_version >= "3.9" and python_version < "4.0" | ||
django-extensions==2.1.6 ; python_version >= "3.9" and python_version < "4.0" | ||
django-filter==2.4.0 ; python_version >= "3.9" and python_version < "4.0" | ||
django-ical==1.4 ; python_version >= "3.9" and python_version < "4.0" | ||
django-markwhat==1.6.1 ; python_version >= "3.9" and python_version < "4.0" | ||
django-select2==7.0.3 ; python_version >= "3.9" and python_version < "4.0" | ||
django-split-settings==0.3.0 ; python_version >= "3.9" and python_version < "4.0" | ||
django-tables2==2.3.4 ; python_version >= "3.9" and python_version < "4.0" | ||
django==3.2.16 ; python_version >= "3.9" and python_version < "4.0" | ||
icalendar==4.1.0 ; python_version >= "3.9" and python_version < "4.0" | ||
idna==3.3 ; python_version >= "3.9" and python_version < "4.0" | ||
numpy==1.23.4 ; python_version >= "3.9" and python_version < "4.0" | ||
pandas==1.2.2 ; python_version >= "3.9" and python_version < "4.0" | ||
plotly==4.8.2 ; python_version >= "3.9" and python_version < "4.0" | ||
python-dateutil==2.8.2 ; python_version >= "3.9" and python_version < "4.0" | ||
pytz==2021.1 ; python_version >= "3.9" and python_version < "4.0" | ||
requests==2.26.0 ; python_version >= "3.9" and python_version < "4.0" | ||
retrying==1.3.3 ; python_version >= "3.9" and python_version < "4.0" | ||
six==1.16.0 ; python_version >= "3.9" and python_version < "4.0" | ||
sqlparse==0.4.2 ; python_version >= "3.9" and python_version < "4.0" | ||
urllib3==1.26.12 ; python_version >= "3.9" and python_version < "4" | ||
webencodings==0.5.1 ; python_version >= "3.9" and python_version < "4.0" | ||
asgiref==3.5.2 ; python_version >= "3.9" and python_version < "3.11" | ||
bleach==5.0.1 ; python_version >= "3.9" and python_version < "3.11" | ||
certifi==2022.9.24 ; python_version >= "3.9" and python_version < "3.11" | ||
charset-normalizer==2.0.12 ; python_version >= "3.9" and python_version < "3.11" | ||
django-appconf==1.0.5 ; python_version >= "3.9" and python_version < "3.11" | ||
django-bleach==0.3.0 ; python_version >= "3.9" and python_version < "3.11" | ||
django-bootstrap-static==3.3.7.2 ; python_version >= "3.9" and python_version < "3.11" | ||
django-crispy-forms==1.9.1 ; python_version >= "3.9" and python_version < "3.11" | ||
django-extensions==2.1.6 ; python_version >= "3.9" and python_version < "3.11" | ||
django-filter==2.4.0 ; python_version >= "3.9" and python_version < "3.11" | ||
django-ical==1.4 ; python_version >= "3.9" and python_version < "3.11" | ||
django-select2==7.0.3 ; python_version >= "3.9" and python_version < "3.11" | ||
django-split-settings==0.3.0 ; python_version >= "3.9" and python_version < "3.11" | ||
django-tables2==2.3.4 ; python_version >= "3.9" and python_version < "3.11" | ||
django==3.2.16 ; python_version >= "3.9" and python_version < "3.11" | ||
icalendar==5.0.2 ; python_version >= "3.9" and python_version < "3.11" | ||
idna==3.4 ; python_version >= "3.9" and python_version < "3.11" | ||
markdown-it-py==2.1.0 ; python_version >= "3.9" and python_version < "3.11" | ||
mdurl==0.1.2 ; python_version >= "3.9" and python_version < "3.11" | ||
numpy==1.23.4 ; python_version >= "3.9" and python_version < "3.11" | ||
pandas==1.2.2 ; python_version >= "3.9" and python_version < "3.11" | ||
plotly==4.8.2 ; python_version >= "3.9" and python_version < "3.11" | ||
python-dateutil==2.8.2 ; python_version >= "3.9" and python_version < "3.11" | ||
pytz==2021.1 ; python_version >= "3.9" and python_version < "3.11" | ||
requests==2.26.0 ; python_version >= "3.9" and python_version < "3.11" | ||
retrying==1.3.3 ; python_version >= "3.9" and python_version < "3.11" | ||
six==1.16.0 ; python_version >= "3.9" and python_version < "3.11" | ||
sqlparse==0.4.3 ; python_version >= "3.9" and python_version < "3.11" | ||
urllib3==1.26.12 ; python_version >= "3.9" and python_version < "3.11" | ||
webencodings==0.5.1 ; python_version >= "3.9" and python_version < "3.11" |
File renamed without changes.