tellegram 1.1.17 → 1.1.20

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/README.md CHANGED
@@ -135,13 +135,13 @@ const markdown = `
135
135
 
136
136
  convert(markdown, 'escape');
137
137
  /*
138
- 1\. Name: Alice
139
- \- Role: Admin
140
- \- Score: 95
138
+ 1\. Name: Alice
139
+ • Role: Admin
140
+ • Score: 95
141
141
 
142
- 2\. Name: Bob
143
- \- Role: User
144
- \- Score: 88
142
+ 2\. Name: Bob
143
+ • Role: User
144
+ • Score: 88
145
145
  */
146
146
  ```
147
147
 
@@ -156,4 +156,13 @@ convert(markdown, 'remove', { table: 'unsupported' });
156
156
  // => ''
157
157
  ```
158
158
 
159
+ ## Publishing
160
+
161
+ Pushes to `master` run lint and tests, bump the patch version, and publish
162
+ through npm Trusted Publishing (GitHub Actions OIDC), without an `NPM_TOKEN`.
163
+ The npm publisher for `tellegram` must match owner `Leask`, repository
164
+ `teLLegraM`, workflow filename `release.yml`, and environment `npm`, with
165
+ direct `npm publish` allowed. The GitHub environment only permits `master`.
166
+ Keep these settings aligned if the repository or workflow is renamed.
167
+
159
168
  [MIT Licence](LICENSE)
@@ -26,10 +26,10 @@ const normalizeValue = (cell, context) => {
26
26
 
27
27
  const pairToLine = (pair, rowIndex, isNested) => {
28
28
  if (isNested) {
29
- return `\\- ${pair.header}: ${pair.value}`;
29
+ return `• ${pair.header}: ${pair.value}`;
30
30
  }
31
31
 
32
- return `${rowIndex + 1}\\. ${pair.header}: ${pair.value}`;
32
+ return `${rowIndex + 1}\\. ${pair.header}: ${pair.value}`;
33
33
  };
34
34
 
35
35
  export default (node, context) => {
@@ -55,7 +55,7 @@ export default (node, context) => {
55
55
  });
56
56
 
57
57
  if (!pairs.length) {
58
- return `${rowIndex + 1}\\. Item ${rowIndex + 1}: ${EMPTY_VALUE}`;
58
+ return `${rowIndex + 1}\\. Item ${rowIndex + 1}: ${EMPTY_VALUE}`;
59
59
  }
60
60
 
61
61
  const [first, ...rest] = pairs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tellegram",
3
- "version": "1.1.17",
3
+ "version": "1.1.20",
4
4
  "description": "Convert LLM-generated markdown into Telegram-specific markdown (MarkdownV2)",
5
5
  "type": "module",
6
6
  "main": "index.mjs",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "repository": {
22
22
  "type": "git",
23
- "url": "git+https://github.com/leask/tellegram.git"
23
+ "url": "git+https://github.com/Leask/teLLegraM.git"
24
24
  },
25
25
  "keywords": [
26
26
  "tellegram",
@@ -58,7 +58,7 @@
58
58
  "jest": "^30.2.0",
59
59
  "lint-staged": "^10.5.4",
60
60
  "prettier": "2.2.1",
61
- "semantic-release": "^17.4.2"
61
+ "semantic-release": "^25.0.9"
62
62
  },
63
63
  "lint-staged": {
64
64
  "*.{js,mjs,json,md}": [