aboutsummaryrefslogtreecommitdiffstats
path: root/docs/extensions/smarty.txt
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2013-07-28 06:57:03 -0700
committerWaylan Limberg <waylan@gmail.com>2013-07-28 06:57:03 -0700
commita37c60ac5185c8d5f46b2e5ab7214022e2d76e8c (patch)
tree891a890d8de8452298bb18a8e4703c1940567947 /docs/extensions/smarty.txt
parenta9ca97325e9039de90eae29fb3d8879bc9f367f6 (diff)
parent85ad18071d61925168387934e4e6f9f82462c292 (diff)
downloadmarkdown-a37c60ac5185c8d5f46b2e5ab7214022e2d76e8c.tar.gz
markdown-a37c60ac5185c8d5f46b2e5ab7214022e2d76e8c.tar.bz2
markdown-a37c60ac5185c8d5f46b2e5ab7214022e2d76e8c.zip
Merge pull request #231 from mitya57/master
Add Smarty extension and use it for building docs.
Diffstat (limited to 'docs/extensions/smarty.txt')
-rw-r--r--docs/extensions/smarty.txt56
1 files changed, 56 insertions, 0 deletions
diff --git a/docs/extensions/smarty.txt b/docs/extensions/smarty.txt
new file mode 100644
index 0000000..84c6494
--- /dev/null
+++ b/docs/extensions/smarty.txt
@@ -0,0 +1,56 @@
+title: SmartyPants Extension
+prev_title: Sane Lists Extension
+prev_url: sane_lists.html
+next_title: Table of Contents Extension
+next_url: toc.html
+
+SmartyPants
+===========
+
+Summary
+-------
+
+The SmartyPants extension converts ASCII dashes, quotes and ellipses to
+their HTML entity equivalents.
+
+ASCII symbol | Unicode replacements
+------------ | --------------------
+&#39; | &lsquo; &rsquo;
+&quot; | &ldquo; &rdquo;
+\... | &hellip;
+\-- | &ndash;
+-\-- | &mdash;
+
+Arguments
+---------
+
+All three arguments are set to `True` by default.
+
+Argument | Description
+-------- | -----------
+`smart_dashes` | whether to convert dashes
+`smart_quotes` | whether to convert quotes
+`smart_ellipses` | whether to convert ellipses
+
+Usage
+-----
+
+Default configuration:
+
+ >>> html = markdown.markdown(text,
+ ... extensions=['smarty']
+ ... )
+
+Disable quotes convertation:
+
+ >>> html = markdown.markdown(text,
+ ... extensions=['smarty(smart_quotes=False)']
+ ... )
+
+Further reading
+---------------
+
+SmartyPants extension is based on the original SmartyPants implementation
+by John Gruber. Please read it's [documentation][1] for details.
+
+[1]: http://daringfireball.net/projects/smartypants/