Skip to content
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
2 changes: 1 addition & 1 deletion lib/markdown_deux/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
See <http://github.com/trentm/django-markdown-deux> for more info.
"""

__version_info__ = (1, 0, 6)
__version_info__ = (1, 0, 7)
__version__ = '.'.join(map(str, __version_info__))
__author__ = "Trent Mick"

Expand Down
11 changes: 6 additions & 5 deletions lib/markdown_deux/templatetags/markdown_deux_tags.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django import template
from django.utils.html import format_html
from django.utils.safestring import mark_safe
try:
from django.utils.encoding import force_text
Expand Down Expand Up @@ -71,8 +72,8 @@ def markdown_cheatsheet():

@register.simple_tag
def markdown_allowed():
return ('<a href="%s" target="_blank">Markdown syntax</a> allowed, but no raw HTML. '
'Examples: **bold**, *italic*, indent 4 spaces for a code block.'
% settings.MARKDOWN_DEUX_HELP_URL)


return format_html(
'<a href="%s" target="_blank">Markdown syntax</a> allowed, '
'but no raw HTML. '
'Examples: **bold**, *italic*, indent 4 spaces for a code block.',
mark_safe(settings.MARKDOWN_DEUX_HELP_URL))