@adobe/helix-html-pipeline 6.33.8 → 6.33.10

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [6.33.10](https://github.com/adobe/helix-html-pipeline/compare/v6.33.9...v6.33.10) (2026-11-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update external fixes ([#1167](https://github.com/adobe/helix-html-pipeline/issues/1167)) ([42a0d65](https://github.com/adobe/helix-html-pipeline/commit/42a0d658747094209d23de6d88737ca01de35105))
7
+
8
+ ## [6.33.9](https://github.com/adobe/helix-html-pipeline/compare/v6.33.8...v6.33.9) (2026-11-23)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * strip icon notation from auto-generated description ([#1135](https://github.com/adobe/helix-html-pipeline/issues/1135)) ([32e9a35](https://github.com/adobe/helix-html-pipeline/commit/32e9a355b23f0648bf6c6ff67fe725910805962d)), closes [#1134](https://github.com/adobe/helix-html-pipeline/issues/1134)
14
+
1
15
  ## [6.33.8](https://github.com/adobe/helix-html-pipeline/compare/v6.33.7...v6.33.8) (2026-11-22)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "6.33.8",
3
+ "version": "6.33.10",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -47,7 +47,7 @@
47
47
  "@adobe/mdast-util-gridtables": "4.0.25",
48
48
  "@adobe/remark-gridtables": "3.0.23",
49
49
  "github-slugger": "2.0.0",
50
- "hast-util-raw": "9.1.0",
50
+ "hast-util-raw": "9.2.0",
51
51
  "hast-util-select": "6.0.4",
52
52
  "hast-util-to-html": "9.0.6",
53
53
  "hast-util-to-string": "3.0.1",
@@ -56,7 +56,7 @@
56
56
  "mdast-util-to-hast": "13.2.1",
57
57
  "mdast-util-to-string": "4.0.0",
58
58
  "mime": "4.1.2",
59
- "parse5": "8.1.0",
59
+ "parse5": "8.1.1",
60
60
  "rehype-format": "5.0.1",
61
61
  "rehype-parse": "9.0.1",
62
62
  "remark-parse": "11.0.0",
@@ -18,6 +18,7 @@ import {
18
18
  } from './utils.js';
19
19
  import { toMetaName } from '../utils/modifiers.js';
20
20
  import { childNodes } from '../utils/hast-utils.js';
21
+ import { REGEXP_ICON } from './rewrite-icons.js';
21
22
 
22
23
  // common web image extensions
23
24
  const IMAGE_EXTENSIONS = new Set(['avif', 'webp', 'png', 'jpg', 'jpeg', 'gif']);
@@ -178,7 +179,13 @@ function extractDescription(hast) {
178
179
  let desc = '';
179
180
  visit(hast, (node, idx, parent) => {
180
181
  if (parent?.tagName === 'div' && node.tagName === 'p') {
181
- const words = toString(node).trim().split(/\s+/);
182
+ // strip icon notation (e.g. ":icon-name:") so it doesn't leak into the description.
183
+ // this step runs before rewrite-icons, so icons are still authored as text here.
184
+ const words = toString(node)
185
+ .replace(REGEXP_ICON, '')
186
+ .trim()
187
+ .split(/\s+/)
188
+ .filter((w) => w);
182
189
  if (words.length >= 10 || words.some((w) => w.length > 25 && !w.startsWith('http'))) {
183
190
  desc = `${words.slice(0, 25).join(' ')}${words.length > 25 ? ' ...' : ''}`;
184
191
  return EXIT;
@@ -13,7 +13,7 @@
13
13
  import { h } from 'hastscript';
14
14
  import { CONTINUE, SKIP, visit } from 'unist-util-visit';
15
15
 
16
- const REGEXP_ICON = /(?<!(?:https?|urn)[^\s]*):(#?[a-z_-]+[a-z\d]*):/gi;
16
+ export const REGEXP_ICON = /(?<!(?:https?|urn)[^\s]*):(#?[a-z_-]+[a-z\d]*):/gi;
17
17
 
18
18
  /**
19
19
  * Create a <span> icon element: