fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes for edge cases
[librarian.git]
/
src
/
librarian
/
elements
/
ref
/
__init__.py
diff --git
a/src/librarian/elements/ref/__init__.py
b/src/librarian/elements/ref/__init__.py
index
2019da1
..
7a72a38
100644
(file)
--- 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):
class Ref(WLElement):
+ ASIDE = True
+ HTML_TAG = 'a'
+
def txt_build(self, builder):
pass
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
def epub_build(self, builder):
pass
-