@thi.ng/transclude 0.1.78 → 0.1.79
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 +7 -1
- package/package.json +6 -6
- package/tpl/markdown.js +2 -2
- package/tpl/pkg.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-03-
|
|
3
|
+
- **Last updated**: 2024-03-18T08:40:00Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [0.1.79](https://github.com/thi-ng/umbrella/tree/@thi.ng/transclude@0.1.79) (2024-03-18)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- minor update regexps ([01ebc90](https://github.com/thi-ng/umbrella/commit/01ebc90))
|
|
17
|
+
|
|
12
18
|
### [0.1.70](https://github.com/thi-ng/umbrella/tree/@thi.ng/transclude@0.1.70) (2024-02-22)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transclude",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.79",
|
|
4
4
|
"description": "Extensible functional template engine for text document generation, incl. various high-level Markdown features",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@thi.ng/api": "^8.9.30",
|
|
40
|
-
"@thi.ng/checks": "^3.5.
|
|
41
|
-
"@thi.ng/file-io": "^1.3.
|
|
40
|
+
"@thi.ng/checks": "^3.5.4",
|
|
41
|
+
"@thi.ng/file-io": "^1.3.10",
|
|
42
42
|
"@thi.ng/logger": "^3.0.6",
|
|
43
|
-
"@thi.ng/strings": "^3.7.
|
|
44
|
-
"@thi.ng/transducers": "^8.9.
|
|
43
|
+
"@thi.ng/strings": "^3.7.25",
|
|
44
|
+
"@thi.ng/transducers": "^8.9.14"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@microsoft/api-extractor": "^7.42.3",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"status": "alpha",
|
|
112
112
|
"year": 2022
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "4b3d4ab6ce373ca817ad780f679572169a9ed733\n"
|
|
115
115
|
}
|
package/tpl/markdown.js
CHANGED
|
@@ -17,8 +17,8 @@ const toc = (opts = {}) => ({ src, eol }) => {
|
|
|
17
17
|
const {
|
|
18
18
|
min = 2,
|
|
19
19
|
max = 4,
|
|
20
|
-
match =
|
|
21
|
-
disable =
|
|
20
|
+
match = /<!-- toc -->/i,
|
|
21
|
+
disable = /<!-- notoc -->/i,
|
|
22
22
|
title
|
|
23
23
|
} = opts;
|
|
24
24
|
const isHeading = new RegExp(`^#{${min},${max}}\\s`);
|
package/tpl/pkg.js
CHANGED
|
@@ -97,10 +97,10 @@ const shortName = (name) => {
|
|
|
97
97
|
const idx = name.indexOf("/");
|
|
98
98
|
return idx > 0 ? name.substring(idx + 1) : name;
|
|
99
99
|
};
|
|
100
|
-
const author = (author2) => isString(author2) ? author2.split(/\s*[
|
|
100
|
+
const author = (author2) => isString(author2) ? author2.split(/\s*[<(]/)[0] : author2.name;
|
|
101
101
|
const authorLink = (author2) => {
|
|
102
102
|
if (isString(author2)) {
|
|
103
|
-
const [name, a, b] = author2.split(/\s*[
|
|
103
|
+
const [name, a, b] = author2.split(/\s*[<(]/);
|
|
104
104
|
const href = b ? b[b.length - 1] == ")" ? b : a : a ? a : "";
|
|
105
105
|
return href.length && href[href.length - 1] === ")" ? link(name, href.substring(0, href.length - 1)) : name;
|
|
106
106
|
}
|