Generate markdown-formatted javadoc #134
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi#134
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gtk API documentation (gi-docgen) is in markdown format. To generate clean-looking Javadoc, java-gi runs a series of regular expressions to translate markdown formatting to HTML. This works well enough in many cases, but some formatting, like tables, are not translated.
With JEP 467, OpenJDK 23 introduces markdown-formatted Javadoc. This would be a natural fit for java-gi. However, there are two disadvantages:
I don't think JDK 23 vs 22 is a significant issue for most users: the support window for non LTS releases of the JDK is relatively small, and JDK22 is already out of support, see https://www.oracle.com/java/technologies/java-se-support-roadmap.html
You're right, nobody should be on JDK 22 anymore. The lack of markdown support in Javapoet is the blocking issue for this.
To be honest, the current markdown to javadoc conversion is good enough that this isn't a priority for me.
Fixed with !335