aboutsummaryrefslogtreecommitdiffstats
path: root/docs/extensions/wikilinks.txt
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2014-08-29 10:57:18 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2014-08-29 10:57:18 -0400
commitc27cbd154050c1181eac195a4b0bb19a6bbaf048 (patch)
treeb933195724feff404499dd07f39cd51fa6c17af7 /docs/extensions/wikilinks.txt
parentb1643eb058f44a05523b118632c7b8181b2ffbe7 (diff)
downloadmarkdown-c27cbd154050c1181eac195a4b0bb19a6bbaf048.tar.gz
markdown-c27cbd154050c1181eac195a4b0bb19a6bbaf048.tar.bz2
markdown-c27cbd154050c1181eac195a4b0bb19a6bbaf048.zip
Docs now use dot notation for all extensions.
Except were "short names" are explained in the docs, all references to the buitlin extensions now use `markdown.extensions.*` in anticipation of #336.
Diffstat (limited to 'docs/extensions/wikilinks.txt')
-rw-r--r--docs/extensions/wikilinks.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/extensions/wikilinks.txt b/docs/extensions/wikilinks.txt
index 795ebb4..4c31eac 100644
--- a/docs/extensions/wikilinks.txt
+++ b/docs/extensions/wikilinks.txt
@@ -46,7 +46,7 @@ becomes
Usage
-----
-See [Extensions](index.html) for general extension usage, specify `wikilinks`
+See [Extensions](index.html) for general extension usage, specify `markdown.extensions.wikilinks`
as the name of the extension.
See the [Library Reference](../reference.html#extensions) for information about
@@ -78,7 +78,7 @@ For an example, let us suppose links should always point to the subdirectory
`/wiki/` and end with `.html`
>>> html = markdown.markdown(text,
- ... ['wikilinks(base_url=/wiki/,end_url=.html)']
+ ... ['markdown.extensions.wikilinks(base_url=/wiki/,end_url=.html)']
... )
The above would result in the following link for `[[WikiLink]]`.
@@ -94,14 +94,14 @@ could also pass in a callable which must accept three arguments (``label``,
return url
md = markdown.Markdown(
- extensions=['wikilinks],
- extension_configs={'wikilinks' : [('build_url', my_url_builder)]}
+ extensions=['markdown.extensions.wikilinks],
+ extension_configs={'markdown.extensions.wikilinks' : [('build_url', my_url_builder)]}
)
The option is also provided to change or remove the class attribute.
>>> html = markdown.markdown(text,
- ... ['wikilinks(html_class=myclass)']
+ ... ['markdown.extensions.wikilinks(html_class=myclass)']
... )
Would cause all wikilinks to be assigned to the class `myclass`.