We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06237aa commit 1771df2Copy full SHA for 1771df2
1 file changed
tests/test_rst.py
@@ -646,6 +646,19 @@ def func(): pass
646
- raises `ValueError`: if the message_body exceeds 160 characters
647
"""
648
649
+SPHINX_NESTED = """\
650
+.. code-block:: python
651
+ def foo():
652
+ ''':param str message_body: blah blah'''
653
+"""
654
+
655
+SPHINX_NESTED_MARKDOWN = """\
656
+```python
657
+def foo():
658
659
+```
660
661
662
RST_CASES = {
663
'handles prompt continuation and multi-line output': {
664
'rst': CODE_MULTI_LINE_CODE_OUTPUT,
@@ -788,6 +801,10 @@ def func(): pass
788
801
'converts sphinx signatures': {
789
802
'rst': SPHINX_SIGNATURE,
790
803
'md': SPHINX_SIGNATURE_MARKDOWN
804
+ },
805
+ 'keeps params intact in code blocks': {
806
+ 'rst': SPHINX_NESTED,
807
+ 'md': SPHINX_NESTED_MARKDOWN
791
808
}
792
809
793
810
0 commit comments