-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add parsing inline tags #12
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
Conversation
I've been really burning the candle at both ends, but eager to check it out. Hope to take a look tomorrow. |
Was able to take a look just now, and I see it all works very well, but there is one issue. I would like for us to have the AST working in ESTree format so that selectors can target the contents (whether in The file (FWIW, there is also |
Do you have a link for the JSDoc spec, besides https://jsdoc.app/? I can't seem to find something that specifies the grammer. According to https://github.com/jsdoc/jsdoc/blob/main/packages/jsdoc-tag/lib/inline.js#L63 the text can contain new lines and on the tsdoc playground I'm also able to make the text span multiple lines, where: /**
* I'm experimenting with {@link something | A
* multiline
* text}.
*/ produce the following AST:
Therefore it does seem to me that the
In the context of the above, would it be a dealbreaker if I started accessing the |
No, it sounds like you've really found the "specs"--the docs, source, and TSDoc (though I haven't really used the latter to date myself).
Agreed.
Yes, sounds good.
You can access it however is reliable but since the code depends on |
It appears to be working from the |
I believe this is ready for a final review 👍 |
Thanks for the great contribution! |
Released in v0.38.0 (and in |
This solves #11 by adding a second regexp based parse step on top of the
description
of a comment block as well as thedescription
of any of thetags
on a comment block.