@@ -36,7 +36,7 @@ test('MarkdownIndention', () => {
36
36
[ 'A\n\nB' , 'A\n\nB' ] ,
37
37
[ 'A\n B' , 'A\nB' ] ,
38
38
[ ' A\n B' , 'A\nB' ] ,
39
- [ '\nA\n B' , 'A\\ \n B' ] ,
39
+ [ '\nA\n B' , 'A \n B' ] ,
40
40
[ '\n A\n B' , 'A\nB' ] ,
41
41
[ '\nA\nB\n' , 'A\nB' ] ,
42
42
[ ' \n\nA \n \nB \n ' , 'A\n\nB' ] ,
@@ -110,9 +110,9 @@ test('AsterisksAtStartOfArgs', () => {
110
110
111
111
const markdown = `Foo:
112
112
113
- Args:\\
114
- foo (Foo): Foo!\\
115
- \\*args: These are positional args.\\
113
+ Args:
114
+ foo (Foo): Foo!
115
+ \\*args: These are positional args.
116
116
\\*\\*kwargs: These are named args.
117
117
` ;
118
118
@@ -128,7 +128,7 @@ test('CopyrightAndLicense', () => {
128
128
129
129
const markdown = `This is a test.
130
130
131
- :copyright: Fake Name\\
131
+ :copyright: Fake Name
132
132
:license: ABCv123
133
133
` ;
134
134
@@ -150,13 +150,13 @@ test('CommonRestFieldLists', () => {
150
150
151
151
const markdown = `This function does something.
152
152
153
- :param foo: This is a description of the foo parameter\\
154
- which does something interesting.\\
155
- :type foo: Foo\\
156
- :param bar: This is a description of bar.\\
157
- :type bar: Bar\\
158
- :return: Something else.\\
159
- :rtype: Something\\
153
+ :param foo: This is a description of the foo parameter
154
+ which does something interesting.
155
+ :type foo: Foo
156
+ :param bar: This is a description of bar.
157
+ :type bar: Bar
158
+ :return: Something else.
159
+ :rtype: Something
160
160
:raises ValueError: If something goes wrong.
161
161
` ;
162
162
@@ -557,8 +557,8 @@ keep_default_na : bool, default True
557
557
558
558
na_filter : bool, default True` ;
559
559
560
- const markdown = `Title\\
561
- keep\\_default\\_na : bool, default True\\
560
+ const markdown = `Title
561
+ keep\\_default\\_na : bool, default True
562
562
Whether or not to include the default NaN values when parsing the data.
563
563
564
564
* If \`keep_default_na\` is True, and \`na_values\` are specified, \`na_values\`
@@ -575,7 +575,7 @@ test('FieldListEpyText', () => {
575
575
@param param1: description` ;
576
576
577
577
const markdown = `
578
- 1. Epytext:\\
578
+ 1. Epytext:
579
579
@param param1: description` ;
580
580
581
581
_testConvertToMarkdown ( docstring , markdown ) ;
@@ -587,7 +587,7 @@ test('FieldListRest', () => {
587
587
:param param1: description` ;
588
588
589
589
const markdown = `
590
- 2. reST:\\
590
+ 2. reST:
591
591
:param param1: description` ;
592
592
593
593
_testConvertToMarkdown ( docstring , markdown ) ;
@@ -600,8 +600,8 @@ test('FieldListGoogleV1', () => {
600
600
param1: description` ;
601
601
602
602
const markdown = `
603
- 3. Google (variant 1):\\
604
- Args:\\
603
+ 3. Google (variant 1):
604
+ Args:
605
605
param1: description` ;
606
606
607
607
_testConvertToMarkdown ( docstring , markdown ) ;
@@ -614,8 +614,8 @@ test('FieldListGoogleV2', () => {
614
614
param1 (type): description` ;
615
615
616
616
const markdown = `
617
- 4. Google (variant 2):\\
618
- Args:\\
617
+ 4. Google (variant 2):
618
+ Args:
619
619
param1 (type): description` ;
620
620
621
621
_testConvertToMarkdown ( docstring , markdown ) ;
@@ -692,7 +692,7 @@ find an arbitrary function's zeros.
692
692
693
693
@type b: number
694
694
695
- @param b: The y intercept of the line. The X{y intercept} of a\\
695
+ @param b: The y intercept of the line. The X{y intercept} of a
696
696
line is the point at which it crosses the y axis (M{x=0}).
697
697
698
698
@rtype: number
0 commit comments