File tree 2 files changed +7
-5
lines changed
packages/typedoc-plugin-markdown
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,17 @@ export default function () {
56
56
row . push ( nameCol . join ( ' ' ) ) ;
57
57
row . push (
58
58
Handlebars . helpers . type
59
- . call ( propertyType , 'object' )
59
+ . call ( propertyType )
60
60
. replace ( / (?< ! \\ ) \| / g, '\\|' ) ,
61
61
) ;
62
62
63
63
if ( hasComments ) {
64
64
const comments = getComments ( property ) ;
65
65
if ( comments ) {
66
66
row . push (
67
- stripLineBreaks ( Handlebars . helpers . comments . call ( comments ) ) ,
67
+ stripLineBreaks (
68
+ Handlebars . helpers . comments . call ( comments ) ,
69
+ ) . replace ( / \| / g, '\\|' ) ,
68
70
) ;
69
71
} else {
70
72
row . push ( '-' ) ;
Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ exports[`Declarations: should compile object literal declaration 1`] = `
152
152
| :------ | :------ |
153
153
| \` valueA\` | \` number\` |
154
154
| \` valueB\` | \` boolean\` |
155
- | \` valueC\` | \` Object \` |
156
- | \` valueX\` | \` Object \` |
155
+ | \` valueC\` | { } |
156
+ | \` valueX\` | { \ ` valueA \` : \` number \` [] ; \` valueZ \` : \` string \` = 'foo' } |
157
157
| \` valueX.valueA\` | \` number\` [] |
158
158
| \` valueX.valueZ\` | \` string\` |
159
159
| \` valueY\` | () => \` string\` |
@@ -172,7 +172,7 @@ exports[`Declarations: should compile type literal declaration 1`] = `
172
172
| :------ | :------ | :------ |
173
173
| \` valueA?\` | \` number\` | Comments for valueA |
174
174
| \` valueB?\` | \` boolean\` | - |
175
- | \` valueX\` | \` Object \` | Comment for valueX |
175
+ | \` valueX\` | { \ ` valueA \` : \` number \` [] ; \` valueY \` : ( \` z \` : \` string \` ) => { \ ` a \` : \` string \` ; \` b \` : \` string \` } ; \` valueZ \` : \` string \` } | Comment for valueX |
176
176
| \` valueX.valueA\` | \` number\` [] | - |
177
177
| \` valueX.valueY\` | (\` z\` : \` string\` ) => { \` a\` : \` string\` ; \` b\` : \` string\` } | - |
178
178
| \` valueX.valueZ\` | \` string\` | Nested comment for valueZ |
You can’t perform that action at this time.
0 commit comments