Commit ccbec5cb authored by Wendell Piez's avatar Wendell Piez

Issue #40 - losing formatting around note callouts

parent 972b6d24
......@@ -48,9 +48,10 @@
</xsl:template>
<xsl:template match="key('elements-by-class','FootnoteReference') | key('elements-by-class','EndnoteReference')">
<xsl:apply-templates select=".//a"/>
<xsl:apply-templates/>
</xsl:template>
<!-- matches the 'a' element inside a reference (span) -->
<xsl:template match="key('elements-by-class','footnoteReference') | key('elements-by-class','endnoteReference')">
<note data-id="{replace(@href,'^#','')}">
<xsl:comment> implicit </xsl:comment>
......
......@@ -67,7 +67,7 @@
<!-- NB stripping b and strong for now. -->
<!-- Also dropping inline markup that has only whitespace /tabs -->
<xsl:template match="i | sup | sub | a | code | em">
<xsl:apply-templates select=".[matches(.,'\S')]" mode="copy-after-all"/>
<xsl:apply-templates select=".[matches(.,'\S') or exists(child::note)]" mode="copy-after-all"/>
</xsl:template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment