What is the correct way to write multi-line code in JSDoc comment in a javascript/typescript project in VSCode?

Bru*_*Sun 6 jsdoc typescript visual-studio-code

When working on a javascript/typescript project in VSCode, I want to write multi-line code in comment. Knowing that VSCode supports markdown syntax in comment, I go ahead and write:

/**
* ```ts
* { deliverQuestionClicked: { [pageNum]: false } }
* ```
*/
deliverQuestionClicked: {},
Run Code Online (Sandbox Code Playgroud)

However when I hover on that variable, VSCode renders the comment in a ugly looking way:

vscode_1.png

As the screenshot shown above, there're extra * that I don't want.

So I wonder what is the correct way to write multi-line code in comment?

Update 2020/9/25

I can confirm this problem doesn't exist in VSCode 1.49.1

Code:

class TopRow extends React.Component {
    state = {
        /**
        * ```ts
        * { deliverQuestionClicked: { [pageNum]: false } }
        * ```
        */
        deliverQuestionClicked: {},
    };
}
Run Code Online (Sandbox Code Playgroud)

When I hover over that class property, it shows the JSDoc perfectly:

图像.png

rio*_*oV8 5

应该已经修好了。

在 VSC 1.48 中使用此代码

class TopRow {
  state = {
    /**
    * ```ts
    * { deliverQuestionClicked: { [pageNum]: false } }
    * ```
    */
    deliverQuestionClicked: {}
  }
}
Run Code Online (Sandbox Code Playgroud)

我得到

在此处输入图片说明