@ultimat3/seo 31.38.0 → 31.39.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/package.json +3 -3
- package/src/llms.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/seo",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.39.0",
|
|
4
4
|
"description": "Enforced SEO: typed meta, JSON-LD, sitemap, robots, feeds, responsive images, perf budgets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ultimate",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"test": "bun test"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@ultimat3/core": "31.
|
|
47
|
-
"@ultimat3/schema": "31.
|
|
46
|
+
"@ultimat3/core": "31.39.0",
|
|
47
|
+
"@ultimat3/schema": "31.39.0"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/llms.ts
CHANGED
|
@@ -32,7 +32,8 @@ const listed = (route: RouteRecord): boolean =>
|
|
|
32
32
|
|
|
33
33
|
/** One line, so a newline in a title cannot open a second Markdown entry. */
|
|
34
34
|
const oneLine = (text: string): string => text.replace(/\s+/g, ' ').trim();
|
|
35
|
-
|
|
35
|
+
/** `\` with the brackets: left alone, a title ending `\` escaped the text's own closing `]`. */
|
|
36
|
+
const linkText = (text: string): string => oneLine(text).replace(/[\\[\]]/g, '\\$&');
|
|
36
37
|
/** A Markdown destination ends at a space or an unbalanced `)`; these three never arrive encoded. */
|
|
37
38
|
const linkTarget = (url: string): string =>
|
|
38
39
|
url.replace(
|