Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions sphinx_js/js/convertTopLevel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,16 @@ class PathComputer implements ReflectionVisitor {
*/
function renderCommentContent(content: CommentDisplayPart[]): Description {
return content.map((x): DescriptionItem => {
if (x.kind === "code") {
return { type: "code", code: x.text };
switch (x.kind) {
case "code":
return { type: "code", code: x.text };
case "text":
return { type: "text", text: x.text };
case "inline-tag":
return { type: "text", text: x.text };
case "relative-link":
return { type: "text", text: x.text };
}
if (x.kind === "text") {
return { type: "text", text: x.text };
}
throw new Error("Not implemented");
});
}

Expand Down
Loading