Skip to content

Commit

Permalink
Merge pull request #463 from akatsoulas/markdown-tilde
Browse files Browse the repository at this point in the history
Add markdown extension
  • Loading branch information
akatsoulas authored Feb 26, 2024
2 parents 6fdfbfe + 0b59024 commit 84c7760
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 3 deletions.
2 changes: 1 addition & 1 deletion moderator/moderate/templatetags/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ def user_voted(question, user):
@library.filter
def to_markdown(text):
"""Render markdown text to HTML."""
md = markdown.Markdown(extensions=["fenced_code"])
md = markdown.Markdown(extensions=["fenced_code", "pymdownx.tilde"])
return mark_safe(md.convert(text))
81 changes: 79 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pymysql = "^1.1.0"
django-uuslug = "^2.0.0"
django-ipware = "^5.0.0"
markdown = "^3.5.1"
pymdown-extensions = "^10.7"

[tool.poetry.group.dev.dependencies]
ipython = "^8.15.0"
Expand Down

0 comments on commit 84c7760

Please sign in to comment.