twoslashes / twoslash

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

Inline @link is represented as a paragraph #34

Open JesusTheHun opened 3 months ago

JesusTheHun commented 3 months ago

Writing a function with a JSDoc that includes an inline link will result in the link being its own paragraph, breaking the style of the popper.

class Foo {}

/**
 * Should be used in the context of a {@link Foo} within your app.
 */
declare function repro(): void;

See below, Foo is in its own paragraph :

Screenshot 2024-04-05 at 17 39 04