Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
ralsina committed Dec 23, 2015
1 parent 84f12dd commit dacf972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/extending.txt
Expand Up @@ -562,7 +562,7 @@ Some (hopefully all) markup compilers support shortcodes in these forms::
{{% foo %}}Some text{{% /foo %}} # one argument called "data" containing "Some text"

So, if you are creating a plugin that generates markup, it may be a good idea to register it as a shortcode
in adition of a restructured text directive or markdown extension, thus making it available to all markups.
in addition of a restructured text directive or markdown extension, thus making it available to all markups.

To implement your own shortcodes from a plugin, you can call ``Nikola.register_shortcode(name, f)`` with the following
arguments:
Expand All @@ -589,4 +589,4 @@ So, for example::

Will cause a call like this::

foo_handler("bar", "beep", baz="bat", data="Some text", site=whatever)
foo_handler("bar", "beep", baz="bat", data="Some text", site=whatever)

0 comments on commit dacf972

Please sign in to comment.