tomusher / wagtail-smartquotes

Smartquotes for the wagtail editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wagtail-smartquotes

A tiny javascript snippet to convert "straight punctuation" into “curly punctuation” in your wagtail page editor.

Why do I need smartquotes?

http://smartquotesforsmartpeople.com/

Punctuation replacements

  • 'Single quotes' to ‘Single quotes’
  • "Double quotes" to “Double quotes”
  • Apostr'phes to Apostr’phes
  • em--dash to em—dash

Installation

Install via pip

pip install git+https://github.com/nhsuk/wagtail-smartquotes@0.1.0

This package is a pre-release. When fully released it will be published to PyPI.

Add to your INSTALLED_APPS

INSTALLED_APPS = [
  ...

  'wagtailsmartquotes',

  ...
]

That's it!

About

Smartquotes for the wagtail editor


Languages

Language:Python 71.3%Language:HTML 17.1%Language:JavaScript 8.5%Language:Dockerfile 3.0%