-
Notifications
You must be signed in to change notification settings - Fork 13
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
tsdoc links crossing multiple lines are mangled #1633
Comments
Can you please post the relevant section from your jsii assembly. If it's already wrong in the assembly, the issue is with aws/jsii-compiler and not jsii-docgen. (And because these repos live in a different organizations we unfortunately cannot move the issue.) |
Sure thing! I've created this repository illustrating both problems. The relevant part for this issue is the parsing of this line:
Which results in this line in the assembly, which contains:
|
Issue opened on the source repository here: aws/jsii-compiler#1497 |
Thank you! |
Version: [email protected]
Summary
When using jsii-docgen in json mode, multi-line
@link
elements are mangled.Description
I have some documentation like the following (note the multi-line tsdoc
@link
in the first line):The generated
remarks
section in the json doc is mangled - it assumed the first link finishes at the end of the first line, so the text link endsstate} * definitions }
.Expected behaviour
The parsed link appears as:
Actual behaviour
The link appears as
Note that:
state
, and again afterdefinitions
*
from the next line is erroneously includedThe text was updated successfully, but these errors were encountered: