-
Notifications
You must be signed in to change notification settings - Fork 134
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
Emitter inserts blank lines between all tags, including @param #201
Comments
Blocks contain a For example, if the emitter instead skipped as few lines as possible, then this counterexample comes out a little weird: /**
* Returns the average of two numbers.
* @remarks
* This method is part of the {@link core-library#Statistics | Statistics subsystem}.
* @param x - The first input number
* has an entire paragraph of text.
*
* Followed by another paragraph
* that spans multiple lines
* as in this example.
* @param y - The second input number
* @returns The arithmetic mean of `x` and `y`
* @beta
*/ Thus, to get this right, we may need to introduce some subjective heuristics about when it looks best to skip a line. |
Both your issues #200 and #201 seek to improve the aesthetic appearance of the At the time when I implemented What are you planning to use this for? |
Thanks for the info. Maybe we should introduce some notion of tags that typically form a group? For example, all As for what I'm planning to use this for - I'm working on a simple VSCode extension that formats TSDoc comments - currently there's nothing out there for that and this is an almost-complete implementation so it makes sense to work off of this API. |
Awesome! Maybe it could also be used to format the docs as @maasha suggested in #198. |
Separate from this issue, we should determine a normalized form for TSDoc comments. This can serve as a spec for any rewriting that is (optionally) performed by |
According to the readme,
@param
and@returns
should go together in a group like so:When this comment is parsed and emitted by the emitter, blank lines are inserted between all the tags, including the
@param
and@returns
tag:These should be output as a group (or at least have an option to output them as a group).
The text was updated successfully, but these errors were encountered: