davsclaus opened a new pull request, #1908: URL: https://github.com/apache/camel-website/pull/1908
## Problem The link check fails on the `next` component docs: ``` [check:links ] Found invalid urls in components/next/amqp-component.html: [check:links ] Fragment #_endpoint_header_JMSAMQPMA at components/next/amqp-component.html does not exist! ``` The amqp component now declares the header prefix `JMS_AMQP_MA_` (apache/camel#31218). `boldLink` builds the table cell as: ``` [[_endpoint_header_JMSAMQPMA]] xref:#_endpoint_header_JMSAMQPMA['',role=anchor]*JMS_AMQP_MA_* (consumer) ``` The trailing `_` of the name closes an emphasis opened by the `_` that starts the anchor id. Asciidoctor then renders the `[[...]]` anchor as text instead of an `<a id>`, so the fragment has no target. ## Fix `boldLink` wraps the name in a `+...+` passthrough (`*+JMS_AMQP_MA_+*`), so it is rendered as literal text. The anchor id is unchanged. ## Testing I rendered every distinct option and header name of the Camel catalog (7448 names across components, languages and data formats) through `boldLink` with Asciidoctor 3.0.4: - before: 1 broken, the amqp `JMS_AMQP_MA_` header - after: 0 broken; every name renders with its `<a id>` anchor and the name in `<strong>`, including the `CamelBox.` prefix case fixed in a1f71b00 A full site build with the link check was not run locally. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
