twoslashes/twoslash

`@example` Code blocks are rendered as inline blocks

posva opened this issue · 0 comments

Screenshot 2024-05-22 at 14 39 59

The code block should probably be rendered within a <pre>. I think it used to work

Repro to put within ```ts twoslash

interface Wow {
  /**
   * Some a property
   *
   * @example Example title
   *
   * ```js
   * const a = 2
   * const b = 3
   * ```
   */
  a: number
}