From 587227a7d8751f4796196a18b7614612e4136da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Sat, 15 Feb 2014 19:33:21 +0100 Subject: docs: update nl2br documentation --- docs/extensions/nl2br.txt | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/extensions/nl2br.txt b/docs/extensions/nl2br.txt index ef479fd..1ae8b0b 100644 --- a/docs/extensions/nl2br.txt +++ b/docs/extensions/nl2br.txt @@ -7,10 +7,16 @@ next_url: sane_lists.html NL2BR Extension =============== -A Python-Markdown extension to treat newlines as hard breaks; like +Summary +------- + +The NL2BR Extension will cause newlines to be treated as hard breaks; like StackOverflow and [GitHub][] flavored Markdown do. -Usage: +[Github]: http://github.github.com/github-flavored-markdown/ + +Example +------- >>> import markdown >>> text = """ @@ -22,4 +28,10 @@ Usage:

Line 1
Line 2

-[Github]: http://github.github.com/github-flavored-markdown/ +Usage +----- + +See [Extensions](./index.html) for general extension usage, specify `nl2br` +as the name of the extension. + +This extension does not accept any special configuration options. -- cgit v1.2.3