Add Typogrify/SmartyPants dashes config parameter (#2615)

This commit is contained in:
fancsali 2020-04-16 12:32:19 +01:00 committed by GitHub
commit f610801ee8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 101 additions and 0 deletions

View file

@ -279,6 +279,17 @@ Basic settings
``pre`` and ``code`` tags. This requires that Typogrify version 2.0.4 or
later is installed
.. data:: TYPOGRIFY_DASHES = 'default'
This setting controls how Typogrify sets up the Smartypants filter to
interpret multiple dash/hyphen/minus characters. A single ASCII dash
character (``-``) is always rendered as a hyphen. The ``default`` setting
does not handle en-dashes and converts double-hyphens into em-dashes. The
``oldschool`` setting renders both en-dashes and em-dashes when it sees two
(``--``) and three (``---``) hyphen characters, respectively. The
``oldschool_inverted`` setting turns two hyphens into an em-dash and three
hyphens into an en-dash.
.. data:: SUMMARY_MAX_LENGTH = 50
When creating a short summary of an article, this will be the default length