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
I noticed this when reviewing the YARD API documentation using yard 0.9.36. Markdown named links (ex: [foo][1] ... [1]: ...) are not correctly rendered or scrubbed in the method-summary list for a Class/Method.
## [PowerShell unescapes][1] the characters in the data.## [1]: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_special_characters?view=powershell-7.2## ...#defself.unescape(data)
As you can see, the [PowerShell unescapes][1] text is preserved in the method-list summary text at the top of the Class/Module.
Wait, I get it... It's because YARD is taking the first line of the method description and rendering it. Since the [1]: ... is on the third line, the named YARD link is not able to render. Using a regular [Link name](https://...) link works. Feel free to close this.
I noticed this when reviewing the YARD API documentation using yard 0.9.36. Markdown named links (ex:
[foo][1] ... [1]: ...
) are not correctly rendered or scrubbed in the method-summary list for a Class/Method.As you can see, the
[PowerShell unescapes][1]
text is preserved in the method-list summary text at the top of the Class/Module.Steps to reproduce
lib/test.rb
:Gemfile
:Actual Output
Expected Output
Either render the method description with the markdown link,or render the method description as plain-text without the link.
Environment details:
ruby -v
):ruby 3.3.4 (2024-07-09 revision be1089c8ec) [x86_64-linux]
yard -v
):yard 0.9.36
The text was updated successfully, but these errors were encountered: