An open API service indexing awesome lists of open source software.

https://github.com/moreati/pypi-rst-ref

A reference for how reStructuredText blocks are treated by Github and PyPI
https://github.com/moreati/pypi-rst-ref

Last synced: 2 months ago
JSON representation

A reference for how reStructuredText blocks are treated by Github and PyPI

Awesome Lists containing this project

README

          

Paragraph 1, no literal syntax

>>> indented_doctest_block()
None

Paragraph 2, no literal syntax

>>> unindented_doctest_block()
None

Paragraph 3, no literal syntax

def foo():
return None

Paragraph 4, expanded literal syntax

::

def foo():
return None

Paragraph 5, partially minimized literal syntax ::

def foo():
return None

Paragraph 6, fully minimized literal syntax::

def foo():
return None

Paragraph 7, code block, no language

.. code::

def foo():
return None

Paragraph 8, code block, language=python

.. code:: python

def foo():
return None

Paragraph 9, Sphinx doctest block