From: Radek Czajka Date: Thu, 7 Apr 2022 10:20:19 +0000 (+0200) Subject: rel X-Git-Tag: 2.3.5 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/7805246da7d634d97dfa9e864c2502bd56a3a919?ds=inline;hp=753d3a2d605279607ab18018a227b17dd7cb94b3 rel --- diff --git a/CHANGELOG.md b/CHANGELOG.md index d19c282..e953fb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ This document records all notable changes to Librarian. +## 2.3.5 (2022-04-07) + +### Fixed +- Support for www tag. +- Support for mat with inline text. + + ## 2.3.4 (2022-02-28) ### Fixed: diff --git a/setup.py b/setup.py index c89f5a1..957652f 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def whole_tree(prefix, path): setup( name='librarian', - version='2.3.4', + version='2.3.5', description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats', author="Marek Stępniowski", author_email='marek@stepniowski.com', diff --git a/src/librarian/elements/styles/www.py b/src/librarian/elements/styles/www.py index e15f712..d8268a1 100644 --- a/src/librarian/elements/styles/www.py +++ b/src/librarian/elements/styles/www.py @@ -2,4 +2,10 @@ from ..base import WLElement class WWW(WLElement): - pass + EPUB_TAG = 'a' + + def get_epub_attr(self, builder): + attr = super().get_epub_attr(builder) + attr['href'] = self.text + return attr + diff --git a/src/librarian/xslt/book2html.xslt b/src/librarian/xslt/book2html.xslt index ba9dbb4..f540b49 100644 --- a/src/librarian/xslt/book2html.xslt +++ b/src/librarian/xslt/book2html.xslt @@ -430,7 +430,7 @@ - + @@ -463,6 +463,14 @@ + + + + + + + +