X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e17ce23224e5923b782f6323391bc40c801559e9..3a0c83394d5783715fab2be29fa1a9cfc3574e28:/src/librarian/elements/ref/__init__.py diff --git a/src/librarian/elements/ref/__init__.py b/src/librarian/elements/ref/__init__.py index 2019da1..fc89a55 100644 --- a/src/librarian/elements/ref/__init__.py +++ b/src/librarian/elements/ref/__init__.py @@ -1,13 +1,21 @@ +# This file is part of Librarian, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. +# from ..base import WLElement class Ref(WLElement): + ASIDE = True + HTML_TAG = 'a' + def txt_build(self, builder): pass - def html_build(self, builder): - pass + def get_html_attr(self, builder): + return { + 'class': 'reference', + 'data-uri': self.attrib.get('href', ''), + } def epub_build(self, builder): pass -