twoslashes / twoslash

Markup for generating rich type information in your documentations ahead of time.
https://twoslash.netlify.app/
MIT License
506 stars 17 forks source link

`@example` Code blocks are rendered as inline blocks #38

Closed posva closed 4 months ago

posva commented 4 months ago

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
}