diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2013-07-26 09:16:38 +0400 |
---|---|---|
committer | Dmitry Shachnev <mitya57@gmail.com> | 2013-07-26 09:16:38 +0400 |
commit | a23ba4d248ab30bc790bfb6f1af53c77d8f6065f (patch) | |
tree | b1b506ab9735d6b7cad8dbeb691a04997654e114 /docs/extensions/smarty.txt | |
parent | 61066d49189b156a54778b7ef70dfd0a3ed86e93 (diff) | |
download | markdown-a23ba4d248ab30bc790bfb6f1af53c77d8f6065f.tar.gz markdown-a23ba4d248ab30bc790bfb6f1af53c77d8f6065f.tar.bz2 markdown-a23ba4d248ab30bc790bfb6f1af53c77d8f6065f.zip |
Add documentation for smarty extension
Diffstat (limited to 'docs/extensions/smarty.txt')
-rw-r--r-- | docs/extensions/smarty.txt | 56 |
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 +------------ | -------------------- +' | ‘ ’ +" | “ ” +\... | … +\-- | – +-\-- | — + +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/ |