File tree Expand file tree Collapse file tree 5 files changed +20
-4
lines changed
doxdox-renderer-bootstrap/src
doxdox-renderer-github-wiki/src
doxdox-renderer-markdown/src Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 46
46
...method . params . map ( ( { name, types, description } ) => [
47
47
name ,
48
48
`<code>${ types
49
+ . map ( type =>
50
+ type . replace ( / < / , '<' ) . replace ( / > / , '>' )
51
+ )
49
52
. map ( type => mdTypes . renderInline ( type ) )
50
53
. join ( '</code>, <code>' ) } </code>`,
51
54
description || ''
65
68
66
69
${ method . returns . map (
67
70
param => `<p><code>${ param . types
71
+ . map ( type => type . replace ( / < / , '<' ) . replace ( / > / , '>' ) )
68
72
. map ( type => mdTypes . renderInline ( type ) )
69
73
. join ( '</code>, <code>' ) } </code></p>
70
74
Original file line number Diff line number Diff line change 68
68
...method . params . map ( ( { name, types, description } ) => [
69
69
name ,
70
70
`<code>${ types
71
+ . map ( type => type . replace ( / < / , '<' ) . replace ( / > / , '>' ) )
71
72
. map ( type => mdTypes . renderInline ( type ) )
72
73
. join ( '</code>, <code>' ) } </code>`,
73
74
description || ''
85
86
86
87
${ method . returns . map (
87
88
param => `<p><code>${ param . types
89
+ . map ( type => type . replace ( / < / , '<' ) . replace ( / > / , '>' ) )
88
90
. map ( type => mdTypes . renderInline ( type ) )
89
91
. join ( '</code>, <code>' ) } </code></p>
90
92
Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ ${markdownTable([
22
22
[ 'Name' , 'Types' , 'Description' ] ,
23
23
...method . params . map ( ( { name, types, description } ) => [
24
24
name ,
25
- types . join ( ', ' ) ,
25
+ types
26
+ . map ( type => type . replace ( / < / , '<' ) . replace ( / > / , '>' ) )
27
+ . join ( ', ' ) ,
26
28
description || ''
27
29
] )
28
30
] ) } `
34
36
? `### Returns
35
37
36
38
${ method . returns . map (
37
- param => `${ param . types . join ( ', ' ) }
39
+ param => `${ param . types
40
+ . map ( type => type . replace ( / < / , '<' ) . replace ( / > / , '>' ) )
41
+ . join ( ', ' ) }
38
42
${ param . description || '' } `
39
43
) } `
40
44
: ''
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ ${markdownTable([
16
16
[ 'Name' , 'Types' , 'Description' ] ,
17
17
...method . params . map ( ( { name, types, description } ) => [
18
18
name ,
19
- types . join ( ', ' ) ,
19
+ types
20
+ . map ( type => type . replace ( / < / , '<' ) . replace ( / > / , '>' ) )
21
+ . join ( ', ' ) ,
20
22
description || ''
21
23
] )
22
24
] ) } `
28
30
? `### Returns
29
31
30
32
${ method . returns . map (
31
- param => `${ param . types . join ( ', ' ) }
33
+ param => `${ param . types
34
+ . map ( type => type . replace ( / < / , '<' ) . replace ( / > / , '>' ) )
35
+ . join ( ', ' ) }
32
36
${ param . description || '' } `
33
37
) } `
34
38
: ''
Original file line number Diff line number Diff line change 42
42
...method . params . map ( ( { name, types, description } ) => [
43
43
name ,
44
44
`<code>${ types
45
+ . map ( type => type . replace ( / < / , '<' ) . replace ( / > / , '>' ) )
45
46
. map ( type => mdTypes . renderInline ( type ) )
46
47
. join ( '</code>, <code>' ) } </code>`,
47
48
description || ''
59
60
60
61
${ method . returns . map (
61
62
param => `<p><code>${ param . types
63
+ . map ( type => type . replace ( / < / , '<' ) . replace ( / > / , '>' ) )
62
64
. map ( type => mdTypes . renderInline ( type ) )
63
65
. join ( '</code>, <code>' ) } </code></p>
64
66
You can’t perform that action at this time.
0 commit comments