Skip to content

Commit

Permalink
Add support for empty link in Markdown output #28
Browse files Browse the repository at this point in the history
  • Loading branch information
jelovirt committed Oct 28, 2018
1 parent 85879b3 commit 0cc70ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/ast2markdown.xsl
Expand Up @@ -238,6 +238,10 @@
<xsl:text>`</xsl:text>
</xsl:template>

<xsl:template match="link[empty(@href | @keyref)]" mode="ast">
<xsl:apply-templates mode="ast"/>
</xsl:template>

<xsl:template match="link[@href]" mode="ast">
<xsl:text>[</xsl:text>
<xsl:apply-templates mode="ast"/>
Expand Down

0 comments on commit 0cc70ac

Please sign in to comment.