Skip to content

Commit

Permalink
Don't use the typogriphy jinja template, it is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
moggers87 committed Apr 7, 2024
1 parent b600ef0 commit 81d1bb7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions exhibition/filters/jinja2.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from jinja2.nodes import CallBlock, Const, ContextReference
from markdown import markdown as md_func
from pypandoc import convert_text as pandoc_func
from typogrify.templatetags import jinja_filters as typogrify_filters
from typogrify.filters import amp, caps, initial_quotes, smartypants, titlecase, typogrify, widont

from exhibition.filters.base import BaseFilter
from exhibition.filters.markdown import DEFAULT_MD_KWARGS, MARKDOWN_META_CONFIG
Expand Down Expand Up @@ -203,7 +203,14 @@ def add_template_filters(self, env):
env.filters["metasort"] = metasort
env.filters["metaselect"] = metaselect
env.filters["metareject"] = metareject
typogrify_filters.register(env)
# typogriphy filters
env.filters['amp'] = amp
env.filters['caps'] = caps
env.filters['initial_quotes'] = initial_quotes
env.filters['smartypants'] = smartypants
env.filters['titlecase'] = titlecase
env.filters['typogrify'] = typogrify
env.filters['widont'] = widont

for name, flt in self.extra_filters.items():
env.filters[name] = flt
Expand Down

0 comments on commit 81d1bb7

Please sign in to comment.