I’ve also put my plan at
https://jira.xwiki.org/browse/XRENDERING-471?focusedCommentId=97792&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-97792
I’m pasting here for convenience:
So here's my plan FTM:
* Add FigureBlock, FigureCaptionBlock and associated Listener events
* Create a new contrib project for a new {{figure}} macro that would output the
new FigureBlock/FigureCaptionBlock
* Modify the HTML5 renderer to support those blocks and generate <figure> and
<figcaption> elements
* Make it work also in the LaTeX renderer
Thanks
-Vincent
> On 8 Mar 2018, at 09:33, Vincent Massol <[email protected]> wrote:
>
> Hi devs,
>
> I’m proposing to add new events/block to XWiki Rendering to support figures
> and captions (it corresponds to the HTML5 <figure> & <figcaption> elements).
>
> At this stage I’m not proposing to modify any syntax to support this. We
> could imagine adding support for this in the HTML5 parser in the near future
> though.
>
> For more information, see https://jira.xwiki.org/browse/XRENDERING-471
>
> I’m starting to work on this so please let me know quickly if you don’t agree.
>
> Of course I won’t break any API (I’ll add default methods to Listener).
>
> Thanks
> -Vincent
>