@adobe/helix-html-pipeline 6.14.12 → 6.15.0
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 +14 -0
- package/package.json +3 -3
- package/src/steps/rewrite-icons.js +1 -1
- package/src/steps/utils.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [6.15.0](https://github.com/adobe/helix-html-pipeline/compare/v6.14.13...v6.15.0) (2024-10-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* rewrite same-page links on .plain.html ([#656](https://github.com/adobe/helix-html-pipeline/issues/656)) ([9c37499](https://github.com/adobe/helix-html-pipeline/commit/9c37499098f95d4dcfc6fa650d249112bbf9cf08)), closes [#642](https://github.com/adobe/helix-html-pipeline/issues/642)
|
|
7
|
+
|
|
8
|
+
## [6.14.13](https://github.com/adobe/helix-html-pipeline/compare/v6.14.12...v6.14.13) (2024-10-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Reverts
|
|
12
|
+
|
|
13
|
+
* Revert "fix: avoid icon rewrite of hh:mm:ss and similar ([#704](https://github.com/adobe/helix-html-pipeline/issues/704))" ([#709](https://github.com/adobe/helix-html-pipeline/issues/709)) ([fd858b5](https://github.com/adobe/helix-html-pipeline/commit/fd858b582f92f953ace385abf97b3148801722e0))
|
|
14
|
+
|
|
1
15
|
## [6.14.12](https://github.com/adobe/helix-html-pipeline/compare/v6.14.11...v6.14.12) (2024-10-03)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.15.0",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"unist-util-visit-parents": "6.0.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@adobe/eslint-config-helix": "2.0.
|
|
73
|
+
"@adobe/eslint-config-helix": "2.0.8",
|
|
74
74
|
"@markedjs/html-differ": "5.0.1",
|
|
75
75
|
"@semantic-release/changelog": "6.0.3",
|
|
76
76
|
"@semantic-release/git": "10.0.1",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"eslint": "8.57.1",
|
|
80
80
|
"eslint-import-resolver-exports": "1.0.0-beta.5",
|
|
81
81
|
"eslint-plugin-header": "3.1.1",
|
|
82
|
-
"eslint-plugin-import": "2.
|
|
82
|
+
"eslint-plugin-import": "2.31.0",
|
|
83
83
|
"esmock": "2.6.7",
|
|
84
84
|
"husky": "9.1.6",
|
|
85
85
|
"js-yaml": "4.1.0",
|
|
@@ -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
|
|
16
|
+
const REGEXP_ICON = /(?<!(?:https?|urn)[^\s]*):(#?[a-z_-]+[a-z\d]*):/gi;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a <span> icon element:
|
package/src/steps/utils.js
CHANGED
|
@@ -211,8 +211,11 @@ export function rewriteUrl(state, url) {
|
|
|
211
211
|
if ((host.includes('--') && HELIX_URL_REGEXP.test(url))
|
|
212
212
|
|| host === state.previewHost
|
|
213
213
|
|| host === state.liveHost) {
|
|
214
|
-
if (hash &&
|
|
215
|
-
|
|
214
|
+
if (hash && state.info?.path) {
|
|
215
|
+
if (pathname === state.info.path
|
|
216
|
+
|| (pathname.endsWith('.plain.html') && pathname.substring(0, pathname.length - 11) === state.info.path)) {
|
|
217
|
+
return hash;
|
|
218
|
+
}
|
|
216
219
|
}
|
|
217
220
|
return `${pathname}${search}${hash}`;
|
|
218
221
|
}
|