-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escaped HTML characters in flexmark output #17
Comments
Sorry, but I cannot reproduce this. I've added your source in The result is (as to be expected): Maybe something's wrong with your maven configuration, but as I don't know anything about maven, I cannot help you with that. Maybe compare the java invocation that all this maven magic results in. Feel free to reopen this issue when you have any additional information. |
I found the issue. The maven compiler plugin was running on JDK 17, the javadoc plugin was running on OpenJDK 20. Maybe there is a compatibility issue with the JDK 20 javadoc? For anyone else having this problem, setting your JAVA_HOME to the same executable as the compiler plugin is using will fix it. I don't like having to mess around with environment variables, so I went with the approach of using the maven-toolchain-plugin, and that synchronized the version across all of the plugins while still making it easy to switch the versions around. |
This wouldn't surprise me. Remember that I'm using a private API here and "hack my way around" (and the original authors have done many things to make this as difficult as possible, violating most rules of best practice OO design). I'll have a look at this again when the next LTS release comes out. Until then everybody should be aware that the doclet is supposed to be run with Java 17 -- anything else is pure luck. |
I'm having a problem with the HTML output of flexmark-java being further processed and escaping characters in the HTML tags. I created a simple example class that shows the problem:
The block of HTML generated by javadoc for the comment is:
It looks like something is taking the output of flexmark and escaping the < and > characters in the HTML. I'm using maven as the build tool. Here is the pom.xml for the example:
The text was updated successfully, but these errors were encountered: