Feature Tour

Typography

Here are a few of the styles that Doxter applies to your content:

  • Straight quotes into “curly” quote HTML entities
  • Backtick style quotes into “curly” quote HTML entities
  • Dashes into en-dash and em-dash entities
  • Three consecutive dots into an ellipsis entity
  • French guillemets into true « guillemets » HTML entities.
  • Comma-style quotes into their curly equivalent.
  • Replace existing spaces with non-break where appropriate

Usage

Doxter applies typography styles to Doxter fields and the doxter filter by default, through the Enable Typography Styles? plugin setting or the addTypographyStyles parsing option. Typography processing also adds hyphenation unless you set addTypographyHyphenation to false.

Alternatively, see the following section on filters

Filters

If the content you want to convert is not stored in a Doxter field, you can use one of the provided filters for on the fly conversion.

{% set markdownString = "# Better typography out of the box" %}
{{ markdownString | doxter({ addTypographyStyles: true }) }}

{% set plainText = "I'm in love with typography. --Selvin Ortiz" %}
{{ plainText | doxterTypography() }}