confluencebuilder icon indicating copy to clipboard operation
confluencebuilder copied to clipboard

Emoticon directive

Open pe1uca opened this issue 2 years ago • 2 comments

I'd like to include confluence emoticons but there's no directive.
They have this format <ac:emoticon ac:name="cross" />

Or is there a way for me to include the tag directly and by pass the need for a custom directive?
(I think the encode_storage_format function prevents this)

pe1uca avatar Jul 20 '22 20:07 pe1uca

At this time, the only way to utilize Confluence's emoticon macro is to use a raw role. For example:

.. role:: raw-confluence(raw)
   :format: confluence_storage

:raw-confluence:`<ac:emoticon ac:name="cross" />`: This is not completed.

We can plan for next release to include a helper role to allow users define something such as :confluence_emoticon:`cross` to inject emoticons.

jdknight avatar Jul 21 '22 01:07 jdknight

Changes (#686) have been made to include support for a confluence_emoticon role. This change has been added into the main branch and should be made available next stable release. If users wish to use this capability before a release is made, the development version of this extension can be installed.

It is assumed this will close off this issue after next release; however, if there is something else related to emoticons that has been missed, please do not hesitate to bring it up.

jdknight avatar Jul 23 '22 13:07 jdknight

v1.9 is now available on PyPI -- marking as closed.

jdknight avatar Aug 21 '22 18:08 jdknight