Open JeanMeche opened 3 weeks ago
The parser handles these cases as
// "entry" - name
// "()" - text
// "code" - name
// "/inject" - text
The formatter adds a space between the name
and text
, with only two cases where the space is omitted. @sandersn, should we add special nodes to the parser, or would it be better to handle these known cases ('/'
and '('
) directly in the formatter?
π Search Terms
getJSDocTags getTextOfJSDocComment
π Version & Regression Information
Tested on 5.5.4, also existed on previous versions.
β― Playground Link
https://stackblitz.com/edit/gettextofjsdoccomment-dbm6rj?file=main.ts,package-lock.json
π» Code
π Actual behavior
getTextOfJSDocComment
returns{@link entry ()}
. Notice the space inbetween.π Expected behavior
getTextOfJSDocComment
returns{@link entry()}
. Notice the space inbetween.Additional information about the issue
This is a variation of #58584.
Also noticed it happened with
{@link core/inject}
becoming{@link core /inject}