Modifier: smartypants


Translate plain ASCII punctuation characters into “smart” typographic punctuation HTML entities. It performs the following transformations:

  • Straight quotes (" and ') into “curly” quote HTML entities
  • Backticks-style quotes (``like this'') into “curly” quote HTML entities
  • Two dashes (--) into an em dash.
  • Three consecutive dots (...) into an ellipsis entity
conversation: |
  "What's your favorite album?" asked Lars. ``...And Justice for All'' replied 
  Kirk -- who was icing his hands after a 20 minute guitar solo.
{{ conversation | smartypants }}
“What’s your favorite album?” asked Lars. “…And Justice for All” replied 
Kirk — who was icing his hands after a 20 minute guitar solo.

or more precisely…

“What’s your favorite album?” asked Lars. “…And Justice for All” replied 
Kirk — who was icing his hands after a 20 minute guitar solo.

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on October 25, 2016