Skip to content

Commit

Permalink
strip links within codeblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Jul 25, 2023
1 parent 8ba36c0 commit 0ce4e19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/docca/base-stage2.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@
<xsl:template priority="1"
match="*[my:is-syntax-block(.)]//ref">``[link {$doc-ref}.{@d:refid} {d:qb-escape(.)}]``</xsl:template>
<xsl:template match="td[1]//ref" >[link {$doc-ref}.{@d:refid} {d:qb-escape(.)}]</xsl:template>
<!--
<xsl:template match="codeline//ref" >[link {$doc-ref}.{@d:refid} {d:qb-escape(.)}]</xsl:template>
-->
<xsl:template match="codeline//ref" >{.}</xsl:template>
<xsl:template match="ref" >[link {$doc-ref}.{@d:refid} `{.}`]</xsl:template>

<xsl:template mode="before" match="*[my:is-code-block(.)]">`</xsl:template>
Expand Down

0 comments on commit 0ce4e19

Please sign in to comment.