File tree Expand file tree Collapse file tree 5 files changed +63
-4
lines changed Expand file tree Collapse file tree 5 files changed +63
-4
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ Extension | "Name"
53
53
[Meta-Data] | `meta`
54
54
[New Line to Break] | `nl2br`
55
55
[Sane Lists] | `sane_lists`
56
+ [SmartyPants] | `smarty`
56
57
[Table of Contents] | `toc`
57
58
[WikiLinks] | `wikilinks`
58
59
@@ -70,6 +71,7 @@ Extension | "Name"
70
71
[Meta-Data]: meta_data.html
71
72
[New Line to Break]: nl2br.html
72
73
[Sane Lists]: sane_lists.html
74
+ [SmartyPants]: smarty.html
73
75
[Table of Contents]: toc.html
74
76
[WikiLinks]: wikilinks.html
75
77
Original file line number Diff line number Diff line change 1
1
title: Sane Lists Extension
2
2
prev_title: New Line to Break Extension
3
3
prev_url: nl2br.html
4
- next_title: Table of Contents Extension
5
- next_url: toc .html
4
+ next_title: SmartyPants Extension
5
+ next_url: smarty .html
6
6
7
7
Sane Lists
8
8
==========
Original file line number Diff line number Diff line change
1
+ title: SmartyPants Extension
2
+ prev_title: Sane Lists Extension
3
+ prev_url: sane_lists.html
4
+ next_title: Table of Contents Extension
5
+ next_url: toc.html
6
+
7
+ SmartyPants
8
+ ===========
9
+
10
+ Summary
11
+ -------
12
+
13
+ The SmartyPants extension converts ASCII dashes, quotes and ellipses to
14
+ their HTML entity equivalents.
15
+
16
+ ASCII symbol | Unicode replacements
17
+ ------------ | --------------------
18
+ ' | ‘ ’
19
+ " | “ ”
20
+ \... | …
21
+ \-- | –
22
+ -\-- | —
23
+
24
+ Arguments
25
+ ---------
26
+
27
+ All three arguments are set to `True` by default.
28
+
29
+ Argument | Description
30
+ -------- | -----------
31
+ `smart_dashes` | whether to convert dashes
32
+ `smart_quotes` | whether to convert quotes
33
+ `smart_ellipses` | whether to convert ellipses
34
+
35
+ Usage
36
+ -----
37
+
38
+ Default configuration:
39
+
40
+ >>> html = markdown.markdown(text,
41
+ ... extensions=['smarty']
42
+ ... )
43
+
44
+ Disable quotes convertation:
45
+
46
+ >>> html = markdown.markdown(text,
47
+ ... extensions=['smarty(smart_quotes=False)']
48
+ ... )
49
+
50
+ Further reading
51
+ ---------------
52
+
53
+ SmartyPants extension is based on the original SmartyPants implementation
54
+ by John Gruber. Please read it's [documentation][1] for details.
55
+
56
+ [1]: http://daringfireball.net/projects/smartypants/
Original file line number Diff line number Diff line change 1
1
title: Table of Contents Extension
2
- prev_title: Sane Lists Extension
3
- prev_url: sane_lists .html
2
+ prev_title: SmartyPants Extension
3
+ prev_url: smarty .html
4
4
next_title: Wikilinks Extension
5
5
next_url: wikilinks.html
6
6
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ Table of Contents
44
44
* [Meta-Data](extensions/meta_data.html)
45
45
* [New Line to Break](extensions/nl2br.html)
46
46
* [Sane Lists](extensions/sane_lists.html)
47
+ * [SmartyPants](extensions/smarty.html)
47
48
* [Table of Contents](extensions/toc.html)
48
49
* [WikiLinks](extensions/wikilinks.html)
49
50
* [Third Party Extensions](extensions/index.html#third-party-extensions)
You can’t perform that action at this time.
0 commit comments