X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e17ce23224e5923b782f6323391bc40c801559e9..c7734daf3d6884c358f1644c1f8f7970453fafb1:/src/librarian/elements/ref/__init__.py?ds=inline diff --git a/src/librarian/elements/ref/__init__.py b/src/librarian/elements/ref/__init__.py index 2019da1..7a72a38 100644 --- a/src/librarian/elements/ref/__init__.py +++ b/src/librarian/elements/ref/__init__.py @@ -2,12 +2,17 @@ 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 -