File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -646,6 +646,19 @@ def func(): pass
646
646
- raises `ValueError`: if the message_body exceeds 160 characters
647
647
"""
648
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
+ ''':param str message_body: blah blah'''
659
+ ```
660
+ """
661
+
649
662
RST_CASES = {
650
663
'handles prompt continuation and multi-line output' : {
651
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
You can’t perform that action at this time.
0 commit comments