在打字稿定义中使用降价

Using markdown in typescript definitions

我想在 typescript d.ts 文件的文档注释中使用某种标记(最好是 markdown),例如:

interface MyProps {
  /**
   * The name of the thing. *Important Note:* bla bla.
   * Default value: `foo`.
   */
  name?: string;
}

VS Code 编辑器似乎既不尊重文档文本中的 markdown 也不尊重 HTML 标签。

打字稿语言是否已经指定对标记的任何支持,或者是否有任何计划?

Is any support for markup already available or are there any plans towards that

没有足够的请求:https://visualstudio.uservoice.com/forums/293070-visual-studio-code?query=markdown

更新:

语言服务提供 /** */ 中的任何内容作为 JSDoc 注释。所以就它而言,它只是一个字符串。如果需要,顶部的任何 UI 都需要支持降价。