Fix
This commit is contained in:
1 parent
b1f54e2030
commit
251548eb8d
2 files changed
+6
-2
No files matched your search
@@ -471,7 +471,11 @@ def render_inline(nodes, book, chapter, out):
|
||||
elif kind == "br":
|
||||
out.append("<br>")
|
||||
elif kind == "ref":
|
||||
out.append('<a class="ref" href="%s">' % ref_href(node, book, chapter))
|
||||
# htmx does not scroll to a fragment, so a reference into another
|
||||
# book has to be a real navigation for the browser to do it.
|
||||
href = ref_href(node, book, chapter)
|
||||
boost = "" if href.startswith("#") else ' hx-boost="false"'
|
||||
out.append('<a class="ref" href="%s"%s>' % (href, boost))
|
||||
render_inline(node.get("c", []), book, chapter, out)
|
||||
out.append("</a>")
|
||||
elif kind in INLINE_TAGS:
|
||||
|
||||
Reference in new issue
Block a user