weaver icon indicating copy to clipboard operation
weaver copied to clipboard

Markdown tables render as plain text in generated Javadoc

Open trask opened this issue 1 month ago • 1 comments

With Weaver v0.28.0, Markdown tables appear as plain text in generated Java Javadoc. Rows collapse into paragraphs containing literal pipes and separators.

This affects the host.id documentation in open-telemetry/semantic-conventions-java#600.

Reduced example of the current output:

/**
 * Machine ID sources.
 *
 * <p>| OS | Primary | Fallback | | --- | --- | --- | | Linux | contents of {@code
 * /etc/machine-id} | contents of {@code /var/lib/dbus/machine-id} |
 */

Desired output would display a readable table, for example:

/**
 * Machine ID sources.
 *
 * <table>
 *   <caption>Machine ID sources</caption>
 *   <tr>
 *     <th scope="col">OS</th>
 *     <th scope="col">Primary</th>
 *     <th scope="col">Fallback</th>
 *   </tr>
 *   <tr>
 *     <td>Linux</td>
 *     <td>contents of {@code /etc/machine-id}</td>
 *     <td>contents of {@code /var/lib/dbus/machine-id}</td>
 *   </tr>
 * </table>
 */

trask avatar Nov 02 '26 17:11 trask

I'd like to help with the Javadoc table rendering. I'd start with a small fixture covering headers, inline code, and escaped characters, then check the generated HTML with Javadoc validation. Is this issue available for a contribution?

This comment was drafted with AI assistance.

adityamukesh avatar Nov 11 '26 06:11 adityamukesh