Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit a4d0aaf

Browse files
committed
Show content as HTML
`data['content']` returned by the API is not a single string (not a list) --so, we need to tell tooltipster to show it as HTML https://www.heteroclito.fr/modules/tooltipster/#options
1 parent e463808 commit a4d0aaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hoverxref/_static/js/hoverxref.js_t

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ $(document).ready(function() {
101101
animationDuration: {{ hoverxref_tooltip_animation_duration }},
102102
side: '{{ hoverxref_tooltip_side }}',
103103
content: '{{ hoverxref_tooltip_content }}',
104+
contentAsHTML: true,
104105

105106
functionBefore: function(instance, helper) {
106107
var $origin = $(helper.origin);

0 commit comments

Comments
 (0)