From what I understood from Javadoc, I will have to first implement a label retention tool as AbstractAttributeModelProcessorwell as use structureHandler.setLocalVariableto set this variable. Then I realized how markdown performer AbstractTextProcessorin the method doProcessto check a variable using context.getVariable, and if it is set to replace the text with a new: text.setText(transformMarkdown(..)).
Read more at https://github.com/thymeleaf/thymeleaf/issues/439 .
source
share