Skip to content
Permalink
Browse files

typo

  • Loading branch information
ralsina committed Dec 23, 2015
1 parent 84f12dd commit dacf97274867bd6ea3974067291bbaa26247e4fd
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/extending.txt
@@ -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:
@@ -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.
You can’t perform that action at this time.