Repository navigation
Replies: 1 comment 1 reply
|
To render markdown to HTML, I would use https://github.com/commonmark/commonmark-java. The library allows to customize how the HTML is rendered, so I would look into using that most likely (https://github.com/commonmark/commonmark-java?tab=readme-ov-file#customize-html-rendering). I don't think I would involve Thymeleaf, although you could use the Thymeleaf engine to render the HTML based on what is in the markdown I guess. It would be similar to how people use Thymeleaf to generate HTML emails. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Sorry for asking question in maybe wrong place...
Wim, as an expert in themleaf, and blogger in hugo, how would you implement shorcodes functionality from hugo framework in spring?
In other words give users who write content in markdown opportunity to insert snippets of code (like youtube video) that would be replaced in runtime with thyemleaf fragment that has appropriate html and css?
Thanks!
All reactions