Info strings in code blocks [message #1824161] |
Wed, 08 April 2020 16:10  |
Eclipse User |
|
|
|
Hello,
When I try to generate HTML from Markdown using the minimal code below, I would expect the generated <code> element to have a class="language-java" attribute as per [1], which doesn't seem to be the case. Any thoughts on whether this is possible and what I'd need to set/override to make this happen would be much appreciated.
MarkupParser markupParser = new MarkupParser();
markupParser.setMarkupLanguage(new MarkdownLanguage());
System.out.println(markupParser.parseToHtml("```java\nreturn 0;\n```"));
Thanks,
Dimitris
[1] https://spec.commonmark.org/0.21/#example-98
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06995 seconds