You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend flexibility to accept any text following the @since tag, not just version numbers.
The current behavior of the library enforces the @since tag to be followed by a version number. Any text after the tag that isn't recognized as a version number is automatically moved to a new line. This isn't accommodating for cases where the @SInCE tag needs to be followed by descriptors other than version numbers (e.g., @since DOM L3 Core).
Current Behavior:
If the @SInCE tag is followed by multiple words, the remaining text is pushed to a new line, like so:
@since DOM
L3 Core
Proposed Feature:
Option 1. Introduce a new configuration option, for example jsdocAllowSinceText, that would allow any text to follow the @since tag and remain on the same line.
Option 2. Allow any text to follow @since by default
The expected behavior would be as follows:
@since DOM L3 Core
Benefits:
Provides greater flexibility in using the @since tag, accommodating a wider range of use cases.
The text was updated successfully, but these errors were encountered:
This is similar to the solution I mentioned in #3; I just had to move @since to the getTagsWithNameAsDescription group, and since the name is never pushed to a new line, it's always next to the tag :).
You can get it on v6 by overriding getTagsWithNameAsDescription and adding it to the list, but... I added an extra fix that won't be so easy to bring to v6: It didn't make sense to add the sentence formatting (Uppercase & period at the end) to @since, so I added a new constant and check for tags where the formatting shouldn't happen.
Summary:
Extend flexibility to accept any text following the
@since
tag, not just version numbers.The current behavior of the library enforces the
@since
tag to be followed by a version number. Any text after the tag that isn't recognized as a version number is automatically moved to a new line. This isn't accommodating for cases where the @SInCE tag needs to be followed by descriptors other than version numbers (e.g.,@since DOM L3 Core
).Current Behavior:
If the @SInCE tag is followed by multiple words, the remaining text is pushed to a new line, like so:
Proposed Feature:
Option 1. Introduce a new configuration option, for example
jsdocAllowSinceText
, that would allow any text to follow the@since
tag and remain on the same line.Option 2. Allow any text to follow
@since
by defaultThe expected behavior would be as follows:
@since DOM L3 Core
Benefits:
The text was updated successfully, but these errors were encountered: