aboutsummaryrefslogtreecommitdiffstats
path: root/docs/extensions
diff options
context:
space:
mode:
authorAdam Dinwoodie <adam@dinwoodie.org>2013-09-19 00:01:02 +0100
committerAdam Dinwoodie <adam@dinwoodie.org>2013-09-19 00:01:02 +0100
commitd5071c13b580bc97651284fecb70dc7f78d18c80 (patch)
tree8791c7cb1b8fd59f25ceadf17b9d0b7f3805a52c /docs/extensions
parent4684e4b86a2f13ea2317125892efac5192c88721 (diff)
downloadmarkdown-d5071c13b580bc97651284fecb70dc7f78d18c80.tar.gz
markdown-d5071c13b580bc97651284fecb70dc7f78d18c80.tar.bz2
markdown-d5071c13b580bc97651284fecb70dc7f78d18c80.zip
Correct documentation: `wikilink` -> `wikilinks`
This fixes #250.
Diffstat (limited to 'docs/extensions')
-rw-r--r--docs/extensions/wikilinks.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/extensions/wikilinks.txt b/docs/extensions/wikilinks.txt
index ed191e3..329c562 100644
--- a/docs/extensions/wikilinks.txt
+++ b/docs/extensions/wikilinks.txt
@@ -75,7 +75,7 @@ For an example, let us suppose links should always point to the subdirectory
`/wiki/` and end with `.html`
>>> html = markdown.markdown(text,
- ... ['wikilink(base_url=/wiki/,end_url=.html)']
+ ... ['wikilinks(base_url=/wiki/,end_url=.html)']
... )
The above would result in the following link for `[[WikiLink]]`.
@@ -91,7 +91,7 @@ could also pass in a callable which must accept three arguments (``label``,
return url
md = markdown.Markdown(
- extensions=['wikilinks],
+ extensions=['wikilinks'],
extension_configs={'wikilinks' : [('build_url', my_url_builder)]}
)
@@ -99,7 +99,7 @@ could also pass in a callable which must accept three arguments (``label``,
The option is also provided to change or remove the class attribute.
>>> html = markdown.markdown(text,
- ... ['wikilink(html_class=myclass)']
+ ... ['wikilinks(html_class=myclass)']
... )
Would cause all wikilinks to be assigned to the class `myclass`.
@@ -108,13 +108,13 @@ Would cause all wikilinks to be assigned to the class `myclass`.
The same options can be used on the command line as well:
- python -m markdown -x wikilink(base_url=http://example.com/,end_url=.html,html_class=foo) src.txt
+ python -m markdown -x wikilinks(base_url=http://example.com/,end_url=.html,html_class=foo) src.txt
Some may prefer the more complex format when calling the `Markdown` class directly:
>>> md = markdown.Markdown(
- ... extensions = ['wikilink'],
- ... extension_configs = {'wikilink': [
+ ... extensions = ['wikilinks'],
+ ... extension_configs = {'wikilinks': [
... ('base_url', 'http://example.com/'),
... ('end_url', '.html'),
... ('html_class', '') ]},