How to Integrate AEM touch UI RTE with Markdown?
As we have seen content fragments offers RTE with Markdown.
I have a use case where I need to convert Touch UI RTE with Markdown. If anyone has implemented it, please help me in same.
As we have seen content fragments offers RTE with Markdown.
I have a use case where I need to convert Touch UI RTE with Markdown. If anyone has implemented it, please help me in same.
Thanks for your response.
Approach 1 is good but due to time constraint would not follow it for now. Hopefully can post something on it future for our community.
I got it working, by successfully converting RTE generated HTML to Markdown and sending Markdown to the PWA.
I have used below code for others reference:
Maven Dependency :
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.11.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.vladsch.flexmark</groupId>
<artifactId>flexmark-osgi</artifactId>
<version>0.34.22</version>
<scope>provided</scope>
</dependency>
Code to covert HTML to Markdown:
FlexmarkHtmlParser.parse(htmlInput)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.