diff --git a/docs/usage.rst b/docs/usage.rst index f0b495e..e39a5e3 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -64,7 +64,7 @@ The linker is a function that gets called to replace URLs with markup. It takes return '%s' % (href, url) parser = bbcode.Parser(linker=my_linker) - parser.render('www.apple.com') # returns www.apple.com + parser.format('www.apple.com') # returns www.apple.com For an example of a linker that may want the render context, imagine a linker that routes all clicks through a local URL:: @@ -76,4 +76,4 @@ For an example of a linker that may want the render context, imagine a linker th return '%s' % (redir_url, url) parser = bbcode.Parser(linker=my_linker, linker_takes_context=True) - parser.render('www.apple.com', request=request) + parser.format('www.apple.com', request=request)