File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
src/templates/pages/reference Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -120,14 +120,24 @@ slug: reference/
120
120
// field
121
121
$ (" [aria-labelledby='reference-fields']" ).children (' li' ).each (function (i ) {
122
122
var fieldName = $ (this ).children (' .paramname' ).children (' a' ).text ();
123
- $ (this ).children (' :last' ).html (' <p>' + entry[fieldName].description + ' </p>' );
123
+ let descr = ' ' ;
124
+ var paragraphs = entry[fieldName].description ;
125
+ for (var i in paragraphs) {
126
+ descr += ' <p>' + paragraphs[i] + ' </p> ' ;
127
+ }
128
+ $ (this ).children (' .paramtype' ).html (descr);
124
129
});
125
130
// method
126
131
$ (" [aria-labelledby='reference-methods']" ).children (' li' ).each (function (i ) {
127
- var method = $ (this ).find ( ' :first ' ).children (' a' ).text ();
132
+ var method = $ (this ).children ( ' .paramname ' ).children (' a' ).text ();
128
133
// removes the brackets
129
134
var methodName = method .substring (0 , method .length - 2 );
130
- $ (this ).find (' :last' ).html (' <p>' + entry[methodName].description + ' </p>' );
135
+ let descr = ' ' ;
136
+ var paragraphs = entry[methodName].description ;
137
+ for (var i in paragraphs) {
138
+ descr += ' <p>' + paragraphs[i] + ' </p> ' ;
139
+ }
140
+ $ (this ).children (' .paramtype' ).html (descr);
131
141
});
132
142
}
133
143
}
You can’t perform that action at this time.
0 commit comments