Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@example Code blocks are rendered as inline blocks #38

Closed
posva opened this issue May 22, 2024 · 0 comments
Closed

@example Code blocks are rendered as inline blocks #38

posva opened this issue May 22, 2024 · 0 comments

Comments

@posva
Copy link
Contributor

posva commented May 22, 2024

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant