Skip to content

Commit

Permalink
fix #59: do not insert <br/> on each markdown end line
Browse files Browse the repository at this point in the history
  • Loading branch information
lebouquetin committed Sep 9, 2024
1 parent 603052a commit b95f9ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jssg/jinja2.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def environment(**options):
}
)

# HACK - 2024-08-28 - D.A. - We remove the "nl" extension because
# it inserts <br/> tags on every end of line.
env.markdowner.inlinePatterns.deregister('nl')

for templatetag in settings.JFME_ADDITIONAL_JINJA2_FUNCTIONS :
module_name, function_name = settings.JFME_ADDITIONAL_JINJA2_FUNCTIONS[templatetag].rsplit('.', 1)
try :
Expand Down Expand Up @@ -82,4 +86,4 @@ def environment(**options):
)
)

return env
return env

0 comments on commit b95f9ec

Please sign in to comment.