Empty link-s with no nested link text also show the target URL in the output.
diff --git a/src/main/org/freemarker/docgen/templates/node-handlers.ftlh b/src/main/org/freemarker/docgen/templates/node-handlers.ftlh
index 892423e..9b990e8 100644
--- a/src/main/org/freemarker/docgen/templates/node-handlers.ftlh
+++ b/src/main/org/freemarker/docgen/templates/node-handlers.ftlh
@@ -123,7 +123,8 @@
<#if .node.@linkend?hasContent>
<a href="${CreateLinkFromID(.node.@linkend)}"><#recurse></a><#t>
<#else>
- <a href="${.node["@xlink:href"]}"><#recurse></a><#t>
+ <#local url = .node["@xlink:href"]>
+ <a href="${url}"><#if .node?children?size != 0><#recurse><#else>${url}</#if></a><#t>
</#if>
</#macro>