有关Github和Pypi如何呈现RestructuredText块的参考。
pypi-rst-ref的Python项目详细描述
第1段,无文字语法
>>> indented_doctest_block() None
第2段,无文字语法
>>> unindented_doctest_block() None
第3段,无文字语法
- def foo():
- return None
第4段,扩展文字语法
def foo(): return None
第5段,部分最小化文字语法
def foo(): return None
第6段,完全最小化文字语法:
def foo(): return None
第7段,代码块,无语言
def foo(): return None
第8段,代码块,language=python
deffoo():returnNone
第9段,Sphinx Doctest区块