From c27cbd154050c1181eac195a4b0bb19a6bbaf048 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 29 Aug 2014 10:57:18 -0400 Subject: 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. --- docs/extensions/wikilinks.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/extensions/wikilinks.txt') 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`. -- cgit v1.2.3