Some idea: https://github.com/vsch/flexmark-java/issues/250 (this means introducing a new syntax).
The alternative is to use HTML.