Skip to content

Conversation

@dweiss
Copy link
Contributor

@dweiss dweiss commented Jan 13, 2026

A feeble attempt at #14257 and perhaps #11870. Allows formatting javadocs as markdown. It also adds prism.js so that code blocks are highlighted using a modern highlighter.

I've converted LuceneTestCase's javadoc as a PoC that it works.

The formatting is done using a custom fork of google-java-format. I've gotten tired of waiting for google/google-java-format#1231 and decided to publish a fork of google-java-format which doesn't break (or touch) markdown javadocs.

Be careful with IDE formatters. If they use the vanilla google-java-format, they may break markdown comments when reflowing longer lines. I don't have a solution for this at the moment; I recommend not caring about code structure until just before pushing the code to github and running tidy beforehand.

@dweiss dweiss added this to the 11.0.0 milestone Jan 13, 2026
@dweiss dweiss merged commit ee305c2 into apache:main Jan 14, 2026
12 checks passed
@dweiss dweiss deleted the markdown-javadoc branch January 14, 2026 21:07
@dweiss dweiss linked an issue Jan 16, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use @snippet javadoc tag for snippets

1 participant