diff --git a/jssg/jinja2.py b/jssg/jinja2.py index 40f9bc7..333c603 100644 --- a/jssg/jinja2.py +++ b/jssg/jinja2.py @@ -28,6 +28,10 @@ def environment(**options): } ) + # HACK - 2024-08-28 - D.A. - We remove the "nl" extension because + # it inserts
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 : @@ -82,4 +86,4 @@ def environment(**options): ) ) - return env \ No newline at end of file + return env