mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add link anchor for internal bookmarks
This commit is contained in:
parent
c8e820760a
commit
6328279091
@ -98,7 +98,7 @@
|
||||
<xsl:apply-templates/>
|
||||
</emph>
|
||||
</xsl:when>
|
||||
<xsl:when test = "@underlined">
|
||||
<xsl:when test = "@underlined and @underlined != 'false'">
|
||||
<emph rend = "paragraph-emph-underlined">
|
||||
<xsl:apply-templates/>
|
||||
</emph>
|
||||
@ -451,6 +451,15 @@
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match = "rtf:field[@type='bookmark-start']">
|
||||
<xsl:element name ="a">
|
||||
<xsl:attribute name = "id">
|
||||
<xsl:value-of select = "@number"/>
|
||||
</xsl:attribute>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match = "rtf:field">
|
||||
<xsl:apply-templates/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user