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

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,6 +73,14 @@ 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
77
+ // The markdown converter applies smart typography that turns -- into — (em dash)
78
+ // This breaks URLs like deploy-preview-159--redpanda-documentation.netlify.app
79
+ content = content.replace(/\(https?:\/\/[^)]*—[^)]*\)/g, (match) => {
80
+ return match.replace(/—/g, '--');
81
+ });
82
+ logger.debug('Fixed em dashes in URLs');
83
+
76
84
  // Unpublish the HTML page FIRST (following unpublish-pages pattern)
77
85
  if (llmsPage.out) {
78
86
  if (!siteCatalog.unpublishedPages) siteCatalog.unpublishedPages = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redpanda-data/docs-extensions-and-macros",
3
- "version": "4.15.0",
3
+ "version": "4.15.1",
4
4
  "description": "Antora extensions and macros developed for Redpanda documentation.",
5
5
  "keywords": [
6
6
  "antora",