File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -254,13 +254,19 @@ class PathComputer implements ReflectionVisitor {
254254 */
255255function renderCommentContent ( content : CommentDisplayPart [ ] ) : Description {
256256 return content . map ( ( x ) : DescriptionItem => {
257- if ( x . kind === "code" ) {
258- return { type : "code" , code : x . text } ;
257+ switch ( x . kind ) {
258+ case "code" :
259+ return { type : "code" , code : x . text } ;
260+ case "text" :
261+ return { type : "text" , text : x . text } ;
262+ // TODO: Add to DescriptionItem
263+ case "inline-tag" :
264+ return { type : "text" , text : x . text } ;
265+ case "relative-link" :
266+ return { type : "text" , text : x . text } ;
267+ default :
268+ throw new Error ( "Not implemented" ) ;
259269 }
260- if ( x . kind === "text" ) {
261- return { type : "text" , text : x . text } ;
262- }
263- throw new Error ( "Not implemented" ) ;
264270 } ) ;
265271}
266272
You can’t perform that action at this time.
0 commit comments