markdown: Rewrite tooltips for <time> elements.

This now uses TippyJS, which enables a more friendly format.
This commit is contained in:
Dinesh
2021-07-01 23:15:02 +05:30
committed by Tim Abbott
parent 6ce2662df5
commit a7ec1dce0f
5 changed files with 33 additions and 6 deletions

View File

@@ -185,4 +185,14 @@ export function initialize() {
placement: "top",
appendTo: () => document.body,
});
delegate("body", {
target: ".rendered_markdown time",
allowHTML: true,
placement: "top",
appendTo: () => document.body,
onHidden(instance) {
instance.destroy();
},
});
}