From 2e31cea442ad48ab837b6a2025eed7096817cfbf Mon Sep 17 00:00:00 2001 From: Leonardo Giordani Date: Wed, 30 Apr 2014 10:08:56 +0200 Subject: [PATCH 1/2] Added fenced syntax for Markdown --- docs/getting_started.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 8ee37162..e12bd006 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -578,6 +578,15 @@ indenting both the identifier and code:: :::identifier +Alternatively, in Markdown you can use the fenced code blocks, wrapping +your code in ``````` which does not require indenting:: + + A block of text + + ```identifier + + ``` + The specified identifier (e.g. ``python``, ``ruby``) should be one that appears on the `list of available lexers `_. From 2897476510a217e3cb7eadf09e6a494969f1311b Mon Sep 17 00:00:00 2001 From: Leonardo Giordani Date: Wed, 30 Apr 2014 16:19:30 +0200 Subject: [PATCH 2/2] Update getting_started.rst As pointed out by @justinmayer, python-markdown offers many extensions, so it is better to refer to the official package documentation. --- docs/getting_started.rst | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/getting_started.rst b/docs/getting_started.rst index e12bd006..eb29d803 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -578,14 +578,8 @@ indenting both the identifier and code:: :::identifier -Alternatively, in Markdown you can use the fenced code blocks, wrapping -your code in ``````` which does not require indenting:: - - A block of text - - ```identifier - - ``` +The python-markdown package offers many extensions to the official Markdown +syntax; you can find them `in the package documentation `_. The specified identifier (e.g. ``python``, ``ruby``) should be one that appears on the `list of available lexers `_.