Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

smartypants Modifier

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.
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →