Open postmodern opened 3 months ago
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