diff options
Diffstat (limited to 'docs/extensions/nl2br.txt')
-rw-r--r-- | docs/extensions/nl2br.txt | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/docs/extensions/nl2br.txt b/docs/extensions/nl2br.txt index ef479fd..0fe20c3 100644 --- a/docs/extensions/nl2br.txt +++ b/docs/extensions/nl2br.txt @@ -4,13 +4,19 @@ prev_url: meta_data.html next_title: Sane Lists Extension next_url: sane_lists.html -NL2BR Extension -=============== +NL2BR +===== -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: <p>Line 1<br /> Line 2</p> -[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. |