mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-16 20:15:48 +01:00
Fix <ex>foo!</ex>
This commit is contained in:
@@ -247,7 +247,7 @@
|
|||||||
|
|
||||||
<xsl:template name="linkify-tag">
|
<xsl:template name="linkify-tag">
|
||||||
<xsl:param name="contents" select="text()"/>
|
<xsl:param name="contents" select="text()"/>
|
||||||
<xsl:variable name="tag" select="str:tokenize($contents, ' [')[1]"/>
|
<xsl:param name="tag" select="$contents"/>
|
||||||
<a href="liberator://help-tag/{$tag}" style="color: inherit;">
|
<a href="liberator://help-tag/{$tag}" style="color: inherit;">
|
||||||
<xsl:if test="contains($tags, concat(' ', $tag, ' '))">
|
<xsl:if test="contains($tags, concat(' ', $tag, ' '))">
|
||||||
<xsl:attribute name="href">#<xsl:value-of select="$tag"/></xsl:attribute>
|
<xsl:attribute name="href">#<xsl:value-of select="$tag"/></xsl:attribute>
|
||||||
@@ -353,6 +353,7 @@
|
|||||||
<span liberator:highlight="HelpEx">
|
<span liberator:highlight="HelpEx">
|
||||||
<xsl:call-template name="linkify-tag">
|
<xsl:call-template name="linkify-tag">
|
||||||
<xsl:with-param name="contents" select="."/>
|
<xsl:with-param name="contents" select="."/>
|
||||||
|
<xsl:with-param name="tag" select="substring-before(concat(., '!'), '!')"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</span>
|
</span>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|||||||
Reference in New Issue
Block a user