Convert HTML into Markdown

Hello Team,

is it possible to convert Html format into Markdown format (Including Markdown syntaxes also) using any Simplicte classes. If possible please suggest us. like HTMLTool, MarkdownTool etc…

If i use HTMLTool.toPlainMarkdownText(htmlOfDocument);

This one only print Markdown test only not syntaxes i need syntaxes because i need to get the document styles and format.

Hello

No this is the first time someone ask us to convert HTML to Markdown, so there is no helper class to do that at that stage.

Let us check if this can be achieved using one of the already included libraries.

NB: HTMLTool.toPlainMarkdownText and the underlying HTMLTool.toPlainText are helper methods to extract raw text from a formatted document

Thanks for replaying. is it possible to convert document into Markdown?

See my prevous answer: at that stage there is no helper class/method to do HTML to markdown conversion. We are going to check if this can be done with the already included Java libs and we will let you know.

Okay Thanks , in that case please help us for How to add the below mentioned maven dependency into simplcite.
com.vladsch.flexmark
flexmark-all
0.64.8

Using this dependency we can convert html into markdown.

I have already given you the procedure to add additional libs this this answer

As said adding external libs may causes tricky versionning conflict issues that can cause misbehavior of the platform and/or of your custom code.

I think you should rather wait for our analysis on your requirement to convert HTML to Markdown in order to benefit from an out of the box solution.

PS: May I ask what platform version you are using ? I ask because if you are using version 6.2 you should upgrade to 6.3 as no further changes will be done on version 6.2 which will end its short term maintenance period in ~2 months

Okay Thanks for the updating

please can you answer this question ?

Hello David,

I can answer this question :slight_smile:

Yes indeed, upgrading Simplicité platform is part of our training journey. I will process this in priority with the team. Please consider the usage will be based on 6.3 LTS.

Again, thank you very much for your support.

OK thank you

The SIM server rntbci.simplicite.io is providing only a version 6 which corresponds to the latest minor version of major version 6 = 6.3

On this SIM serveur there is a unique instance vamsi which is therefore in minor version 6.3

[simplicite@rntbci-simplicite-io ~]$ sim versions

╔════════════╤═════════════════════╗
║ Version    │ Date                ║
╟────────────┼─────────────────────╢
║ 6          │ 2026-01-30 20:37:12 ║
╚════════════╧═════════════════════╝


[simplicite@rntbci-simplicite-io ~]$ sim ls

╔═════════════════════════╤═════╤══════════╤══════════╤═════╤══════════╤═══════════════════╤═╤═╤═╤═════════════════════════════════════════════╗
║Name                     │Vers.│Database  │Status    │Orig.│Created   │Updated            │U│S│P│URL                                          ║
╟─────────────────────────┼─────┼──────────┼──────────┼─────┼──────────┼───────────────────┼─┼─┼─┼─────────────────────────────────────────────╢
║vamsi                    │6    │postgresql│started   │UI   │2025-09-11│2026-01-31 05:00:08│U│ │ │https://vamsi.rntbci.simplicite.io           ║
╚═════════════════════════╧═════╧══════════╧══════════╧═════╧══════════╧═══════════════════╧═╧═╧═╧═════════════════════════════════════════════╝

  Total: 1 instances

On the renault2.simplicite.io SIM server, multiple minor versions of major version 6 are available.

There is also a vamsi instance here, but in version 6.2

I see that there are also instances still using the outdated minor version 6.1, is it normal ?
I suggest theses instances are deleted or upgraded to, at least, minor version 6.2 and that the minor version 6.1 is removed from the available versions on this SIM server.

[simplicite@renault2 ~]$ sim versions

╔════════════╤═════════════════════╗
║ Version    │ Date                ║
╟────────────┼─────────────────────╢
║ 5.3        │ 2026-01-19 15:21:17 ║
║ 6.1        │ 2025-05-12 17:47:38 ║
║ 6.2        │ 2026-01-15 23:21:12 ║
║ 6.3        │ 2026-01-30 20:37:12 ║
╚════════════╧═════════════════════╝

[simplicite@renault2 ~]$ sim ls

╔═════════════════════════╤═════╤══════════╤══════════╤═════╤══════════╤═══════════════════╤═╤═╤═╤═════════════════════════════════════════════╗
║Name                     │Vers.│Database  │Status    │Orig.│Created   │Updated            │U│S│P│URL                                          ║
╟─────────────────────────┼─────┼──────────┼──────────┼─────┼──────────┼───────────────────┼─┼─┼─┼─────────────────────────────────────────────╢
║bruno                    │6.2  │postgresql│started   │UI   │2025-05-15│2026-01-16 02:00:09│U│S│ │https://bruno.renault2.simplicite.io         ║
║bruno63                  │6.3  │postgresql│started   │UI   │2026-01-29│2026-01-31 02:00:09│U│S│ │https://bruno63.renault2.simplicite.io       ║
║hamza                    │6.2  │postgresql│started   │UI   │2025-02-26│2026-01-16 02:00:22│U│S│ │https://hamza.renault2.simplicite.io         ║
║hamza63                  │6.3  │postgresql│started   │UI   │2025-11-03│2026-01-31 02:00:21│U│S│ │https://hamza63.renault2.simplicite.io       ║
║jordan63                 │6.3  │postgresql│started   │UI   │2025-11-03│2026-01-31 02:00:34│U│S│ │https://jordan63.renault2.simplicite.io      ║
║nihed                    │6.1  │postgresql│started   │UI   │2025-02-12│2025-05-13 02:00:14│U│S│ │https://nihed.renault2.simplicite.io         ║
║ram                      │6.2  │postgresql│started   │UI   │2025-04-15│2026-01-16 02:01:07│U│S│ │https://ram.renault2.simplicite.io           ║
║refka                    │6.1  │postgresql│started   │UI   │2025-04-03│2025-05-13 02:00:26│U│S│ │https://refka.renault2.simplicite.io         ║
║vamsi                    │6.2  │postgresql│started   │UI   │2025-04-15│2026-01-16 02:01:21│U│S│ │https://vamsi.renault2.simplicite.io         ║
╚═════════════════════════╧═════╧══════════╧══════════╧═════╧══════════╧═══════════════════╧═╧═╧═╧═════════════════════════════════════════════╝

  Total: 9 instances

This is why I ask :wink:

In major version 6 (= in current minor version 6.3) we have added a basic Markdown to HTML conversion capability with the new helper method MarkdownTool.fromHTML(String html)

We hope this will be fine for your needs. This will be available in the next revision 6.3.3 that will be released by the end of the week.

After doing some investigations, it seem that the FlexMark libs you want to use (which are supposed to be a fork of the CommonMark libs) are not maintained anymore (no commits since ~1year and last release which dates back may 2023) as opposed to CommonMark libs which are still active (last release in january 2026).

Moreover, some indirect dependencies of the FlexMark libs are outdated (e.g. the openhtmltopdf libs which date back to september 2021) and conflicting with more recent libs integrated in Simplicité.

Therefore, even for the next major version 7 of the platform, we plan to keep integrating only the CommonMark libs even if they don’t provide some features such as HTML to Markdown conversion. We may reconsider this if the FlexMark community shows some serious signs of activity in a near future.

If you really want to integrate these old FlexMark libs, you can still do it by building a custom image following the dedicated procedure.