Repository navigation
Fix a bug with handling of @link tags for API Extractor - #240
Conversation
There was a problem hiding this comment.
isplay text [](start = 38, length = 12)
I couldn't find a test with an empty reference. Do you have one? #Resolved
There was a problem hiding this comment.
There was a problem hiding this comment.
pipeSplitContent.length > 0 [](start = 32, length = 27)
Realistically can pipeSplitContent.length ever be <= 0? (If so, shouldn't that be an error?) #Resolved
There was a problem hiding this comment.
According to the docs, this can only happen if the split() delimiter itself is an empty string.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split
In reply to: 122822139 [](ancestors = 122822139)
There was a problem hiding this comment.
Nitpicky, but standardize on either "reserved" (used here) or "unsupported" (used in the error message). #Resolved
|
|
8cd0ab9 to
50440f2
Compare
…pipe-bug # Conflicts: # libraries/api-extractor/testInputs/example3/example3-output.json
API Extractor
@linktags can include optional display text. For example, "widgets" and "draw() function" in this sample code:This PR fixes a bug where certain characters (e.g. an apostrophe) were not allowed in the display text.
It also changes the API JSON semantics slightly: Before, if display text was omitted, the
valuefield would be an empty string, leaving the documentation generator to determine the display text based on the address. After this PR, API Extractor always provides the display text.