feat: Add setting to omit selected Typogrify filters. Fixes #3436 (#3439)

This commit is contained in:
David Lesieur 2025-01-14 06:48:39 -05:00 committed by GitHub
commit 9207e1ff62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 107 additions and 4 deletions

View file

@ -288,7 +288,14 @@ Basic settings
A list of tags for Typogrify to ignore. By default Typogrify will ignore
``pre`` and ``code`` tags. This requires that Typogrify version 2.0.4 or
later is installed
later is installed.
.. data:: TYPOGRIFY_OMIT_FILTERS = []
A list of Typogrify filters to skip. Allowed values are: ``'amp'``,
``'smartypants'``, ``'caps'``, ``'initial_quotes'``, ``'widont'``. By
default, no filter is omitted (in other words, all filters get applied). This
setting requires that Typogrify version 2.1.0 or later is installed.
.. data:: TYPOGRIFY_DASHES = 'default'