From 0556abb794c12c17df655bce0bd6a1d3e265746e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Thu, 9 Jan 2020 10:27:29 +0100 Subject: [PATCH] Syntax highlight the README --- README.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index ccf40f8..754c43c 100644 --- a/README.rst +++ b/README.rst @@ -15,29 +15,29 @@ Installation It's easy using ``pip``, just run: -:: +.. code-block:: bash $ pip install readability-lxml Usage ----- -:: +.. code-block:: python >>> import requests >>> from readability import Document - + >>> response = requests.get('http://example.com') >>> doc = Document(response.text) >>> doc.title() 'Example Domain' - + >>> doc.summary() - u'
\n
\n

Example Domain

\n + """
\n
\n

Example Domain

\n

This domain is established to be used for illustrative examples in documents. You may use this\n domain in examples without prior coordination or asking for permission.

\n

More information...

\n
- \n\n
' + \n\n
""" Change Log ----------