@redpanda-data/docs-extensions-and-macros 4.15.1 → 4.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,13 +73,16 @@ module.exports.register = function () {
73
73
  content = content.replace(/^<!--[\s\S]*?-->\s*/gm, '').trim();
74
74
  logger.debug(`Stripped HTML comments, now ${content.length} bytes`);
75
75
 
76
- // Fix URLs: convert em dashes back to double hyphens
76
+ // Fix URLs: convert em dashes back to double hyphens and remove invisible characters
77
77
  // The markdown converter applies smart typography that turns -- into — (em dash)
78
+ // and inserts zero-width spaces (U+200B) and other invisible Unicode characters
78
79
  // This breaks URLs like deploy-preview-159--redpanda-documentation.netlify.app
79
- content = content.replace(/\(https?:\/\/[^)]*—[^)]*\)/g, (match) => {
80
- return match.replace(/—/g, '--');
80
+ content = content.replace(/\(https?:\/\/[^)]*[—\u200B-\u200D\uFEFF][^)]*\)/g, (match) => {
81
+ return match
82
+ .replace(/—/g, '--')
83
+ .replace(/[\u200B-\u200D\uFEFF]/g, '');
81
84
  });
82
- logger.debug('Fixed em dashes in URLs');
85
+ logger.debug('Fixed em dashes and invisible characters in URLs');
83
86
 
84
87
  // Unpublish the HTML page FIRST (following unpublish-pages pattern)
85
88
  if (llmsPage.out) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redpanda-data/docs-extensions-and-macros",
3
- "version": "4.15.1",
3
+ "version": "4.15.2",
4
4
  "description": "Antora extensions and macros developed for Redpanda documentation.",
5
5
  "keywords": [
6
6
  "antora",