InlineMacro for Tooltips

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

InlineMacro for Tooltips


I have been experimenting with AsciidoctorJ-1.6.0-alpha.3.

Can you please provide me some hints how to create an InlineMacro which produces arbitrary HTML output?
All example implementations of InlineMacros that I have seen so far always produced a link as output.

I am only interested in HTML output for now. In particular I want to implement a macro, which allows to display a tooltip with a short description when hovering over the associated element.

Example syntax:

tooltip:foobar[description="A foobar is a special kind of bar"]

Many thanks in advance!