Typography

Beautiful typography makes your content more engaging and enjoyable

Typography

Better typography out of the box.

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 #

To apply typography styles, make sure to enable addTypographyStyles from plugin settings page. That will tell Doxter to apply typography styles to all your content inside Doxter fields, when rendered.

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.

|doxter #

{% set markdownString = "# Better typography out of the box" %}

{{ markdownString | doxter( {addTypographyStyles: true) }}

|doxterTypography #

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

{{ plainText | doxterTypography() }}

[Work In Progress]

Please forgive my typos, partial docs, and overall mess.

I'm working hard to get everything moved over and provide amazing docs for you, my loyal supporter.

—Selvin Ortiz

Let’s Work Together


If you’d like to work together, have questions about any of my Craft CMS Plugins or just want to say hello, send me an email.

Email Me