File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ function renderProperties({ props: properties }) {
148
148
return '' ;
149
149
}
150
150
151
+ // NOTE: replaces | with U+FF5C since MDX renders \| in tables incorrectly
151
152
return `
152
153
## Properties
153
154
@@ -160,7 +161,7 @@ ${properties
160
161
| --- | --- |
161
162
| **Description** | ${ prop . docs . split ( '\n' ) . join ( '<br />' ) } |
162
163
| **Attribute** | \`${ prop . attr } \` |
163
- | **Type** | \`${ prop . type . replace ( / \| / g, '\\| ' ) } \` |
164
+ | **Type** | \`${ prop . type . replace ( / \| / g, '\uff5c ' ) } \` |
164
165
| **Default** | \`${ prop . default } \` |
165
166
166
167
` ,
@@ -189,6 +190,7 @@ function renderMethods({ methods }) {
189
190
return '' ;
190
191
}
191
192
193
+ // NOTE: replaces | with U+FF5C since MDX renders \| in tables incorrectly
192
194
return `
193
195
## Methods
194
196
@@ -200,7 +202,7 @@ ${methods
200
202
| | |
201
203
| --- | --- |
202
204
| **Description** | ${ method . docs . split ( '\n' ) . join ( '<br />' ) } |
203
- | **Signature** | \`${ method . signature . replace ( / \| / g, '\\| ' ) } \` |
205
+ | **Signature** | \`${ method . signature . replace ( / \| / g, '\uff5c ' ) } \` |
204
206
` ,
205
207
)
206
208
. join ( '\n' ) }
You can’t perform that action at this time.
0 commit comments