This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new a1f71b00 Fix link check: drop jOOR language links, fix header anchors 
for prefix headers
a1f71b00 is described below

commit a1f71b009519f800d7c0d3c5b5d4d3cce32e7022
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Sep 16 21:20:56 2026 +0200

    Fix link check: drop jOOR language links, fix header anchors for prefix 
headers
    
    The jOOR language was removed from Camel main (superseded by the java
    language), so the three 3.x blog posts no longer link to its page.
    
    Header prefix constants such as "CamelBox." and "CamelSolrParam." now carry
    @Metadata, so their names end in a dot. boldLink turned that into a trailing
    "_" in the anchor id, and "_..._" inside the xref target rendered as 
emphasis,
    producing a broken "#<em>endpoint_header_CamelBox</em>" fragment. Strip
    trailing underscores from the generated id.
    
    Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
---
 content/blog/2020/10/Camel36-Whatsnew/index.md       | 2 +-
 content/blog/2020/12/Camel37-Whatsnew/index.md       | 2 +-
 content/blog/2022/06/camel3x-top10-features/index.md | 2 +-
 util/jsonpath-util.js                                | 6 ++++--
 4 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/content/blog/2020/10/Camel36-Whatsnew/index.md 
b/content/blog/2020/10/Camel36-Whatsnew/index.md
index a15f3976..34ace87d 100644
--- a/content/blog/2020/10/Camel36-Whatsnew/index.md
+++ b/content/blog/2020/10/Camel36-Whatsnew/index.md
@@ -100,7 +100,7 @@ Yet another release where we reduced using reflections in a 
few spots in Camel c
 As mentioned in the optimization section we moved initialization of languages 
to an earlier phase.
 Camel now pre compile languages when its applicable, for example JSonPath, and 
XPath language.
 
-And speaking of pre-compiled languages then Camel 3.7 introduces the [jOOR 
language](/components/next/languages/joor-language.html)
+And speaking of pre-compiled languages then Camel 3.7 introduces the jOOR 
language
 to use runtime compile Java in the Camel DSL. A compiled simple language is 
also on the roadmap.
 
 
diff --git a/content/blog/2020/12/Camel37-Whatsnew/index.md 
b/content/blog/2020/12/Camel37-Whatsnew/index.md
index 3aa8321c..d95be725 100644
--- a/content/blog/2020/12/Camel37-Whatsnew/index.md
+++ b/content/blog/2020/12/Camel37-Whatsnew/index.md
@@ -21,7 +21,7 @@ This release introduces a set of new features and noticeable 
improvements that w
 We continued our avenue of making Camel faster and smaller. This time we 
focused on the built-in Simple scripting
 language.
 
-First we added the [jOOR 
language](/components/next/languages/joor-language.html). jOOR is a small Java 
tool for
+First we added the jOOR language. jOOR is a small Java tool for
 performing runtime compilation of Java source code in-memory. It has some 
limitations but generally works well for small
 scripting code (requires Java 11 onwards).
 
diff --git a/content/blog/2022/06/camel3x-top10-features/index.md 
b/content/blog/2022/06/camel3x-top10-features/index.md
index c1867a18..38bbb0f1 100644
--- a/content/blog/2022/06/camel3x-top10-features/index.md
+++ b/content/blog/2022/06/camel3x-top10-features/index.md
@@ -161,7 +161,7 @@ Now you can configure a number of route configurations, and 
then specify on each
 
 In Camel 2 it was possible to run JavaScript code from a Camel route. With 
Camel supporting Java 11 (and now also 17) this is unfortunately no longer 
possible as the JavaScript engine (Nashorn) was deprecated since Java 9 (and 
removed altogether from Java since version 15).
 
-The good news it's now possible to run Java code (with some limitations) 
through the [jOOR language](/components/next/languages/joor-language.html)
+The good news it's now possible to run Java code (with some limitations) 
through the jOOR language
 
 ## 10. Load properties from vault/secrets cloud services
 
diff --git a/util/jsonpath-util.js b/util/jsonpath-util.js
index 38255927..40cc789f 100644
--- a/util/jsonpath-util.js
+++ b/util/jsonpath-util.js
@@ -38,8 +38,10 @@ module.exports = {
   },
 
   boldLink: (text, idPrefix, suffix = '') => {
-    // Remove all the formatting characters from the id to prevent invalid url 
generation
-    const idText = 
`_${idPrefix}_${text.split(/[*_`#~^]*/g).join('').split('.').join('_')}`
+    // Remove all the formatting characters from the id to prevent invalid url 
generation.
+    // A trailing dot (header prefixes such as "CamelBox.") would end the id 
in "_", and
+    // "_..._" inside the xref target is then rendered as emphasis, breaking 
the fragment.
+    const idText = 
`_${idPrefix}_${text.split(/[*_`#~^]*/g).join('').split('.').join('_')}`.replace(/_+$/,
 '')
     text = suffix ? `*${text}* (${suffix})` : `*${text}*`
     return  `[[${idText}]]\nxref:#${idText}['',role=anchor]${text}`
   },

Reply via email to