Jump to content

User:Eana Hufwe/SmartQuote

From Wikipedia, the free encyclopedia

SmartQuote.js is a script that converts the straight dumb quotation marks and apostrophes into typographically correct curly ones, against what is currently outlined at WP:Smart quotes


How to use

[edit]

Go to your own common.js page, and add the following line:

importScript('User:Eana Hufwe/SmartQuote.js'); // Docs: [[User:Eana Hufwe/SmartQuote]]

How it works?

[edit]

This script makes use of a fork of the open source library smartquotes.js by KellyM on GitHub, licensed under MIT License. The conversion is applied to the main content of the article, except any code, preformatted elements, text boxes and editable areas. This will not apply to any changes made to the article content after it is loaded (e.g. countdown timers, etc.).