KDoc. Don't ignore links in @see
Such link was totally ignored: /** * @see <a href="http://kotl.in">http://kotl.in</a> */
This commit is contained in:
@@ -57,7 +57,13 @@ object KDocRenderer {
|
||||
to.append("<DT><b>").append("See Also:").append("</b>")
|
||||
to.append("<DD>")
|
||||
seeTags.forEachIndexed { index, tag ->
|
||||
DocumentationManagerUtil.createHyperlink(to, tag.getSubjectName(), tag.getSubjectName(), false)
|
||||
val subjectName = tag.getSubjectName()
|
||||
if (subjectName != null) {
|
||||
DocumentationManagerUtil.createHyperlink(to, subjectName, subjectName, false)
|
||||
}
|
||||
else {
|
||||
to.append(tag.getContent())
|
||||
}
|
||||
if (index < seeTags.size() - 1) {
|
||||
to.append(", ")
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* @see C
|
||||
* @see D
|
||||
* @see <a href="http://kotl.in">kotlin</a>
|
||||
*/
|
||||
fun testMethod() {
|
||||
|
||||
@@ -17,4 +18,4 @@ fun test() {
|
||||
}
|
||||
|
||||
//INFO: <b>public</b> <b>fun</b> testMethod(): Unit <i>defined in</i> root package<br/>
|
||||
//INFO: <DD><DL><DT><b>See Also:</b><DD><a href="psi_element://C"><code>C</code></a>, <a href="psi_element://D"><code>D</code></a></DD></DL></DD>
|
||||
//INFO: <DD><DL><DT><b>See Also:</b><DD><a href="psi_element://C"><code>C</code></a>, <a href="psi_element://D"><code>D</code></a>, <a href="http://kotl.in">kotlin</a></DD></DL></DD>
|
||||
|
||||
Reference in New Issue
Block a user