X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e17ce23224e5923b782f6323391bc40c801559e9..e2acc67a478455184e5e714e63a61e78ad37d787:/src/librarian/elements/ref/__init__.py?ds=sidebyside 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 -