Support for ref. 1.10
authorRadek Czajka <rczajka@rczajka.pl>
Sun, 8 Nov 2020 23:45:53 +0000 (00:45 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Sun, 8 Nov 2020 23:45:53 +0000 (00:45 +0100)
CHANGELOG.md
setup.py
src/librarian/xslt/book2html.xslt

index d7aa233..4149659 100644 (file)
@@ -3,6 +3,13 @@
 This document records all notable changes to Librarian.
 
 
+## 1.10 (2020-11-09)
+
+### Added
+
+- Support for `ref` tags in HTML.
+
+
 ## 1.9 (2020-10-08)
 
 ### Added
index 0279ed6..79d4f84 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ def whole_tree(prefix, path):
 
 setup(
     name='librarian',
-    version='1.9',
+    version='1.10',
     description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats',
     author="Marek StÄ™pniowski",
     author_email='marek@stepniowski.com',
index 7d2d6b5..7576413 100644 (file)
     <a href="{concat('#footnote-', generate-id(.))}" class="annotation">[<xsl:number value="count(preceding::*[self::pa or self::pe or self::pr or self::pt]) + 1" />]</a>
 </xsl:template>
 
+<xsl:template match="ref" mode="inline">
+  <a class="reference" data-uri="">
+    <xsl:attribute name="data-uri">
+      <xsl:value-of select="@href"/>
+    </xsl:attribute>
+  </a>
+</xsl:template>
+
 <!-- Other inline tags -->
 <xsl:template match="mat" mode="inline">
     <math xmlns="http://www.w3.org/1998/Math/MathML"><xsl:copy-of select="*" /></math>