gtx-cli 2.1.19 → 2.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# gtx-cli
|
|
2
2
|
|
|
3
|
+
## 2.1.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#643](https://github.com/generaltranslation/gt/pull/643) [`4f553c0`](https://github.com/generaltranslation/gt/commit/4f553c00c119f272edc5ccb3616f2d0effec8586) Thanks [@fernando-aviles](https://github.com/fernando-aviles)! - Removing custom configuration on remarkStringify
|
|
8
|
+
|
|
3
9
|
## 2.1.19
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -159,13 +159,13 @@ function applyInlineIds(translatedContent, idMappings) {
|
|
|
159
159
|
// Add the ID to the heading
|
|
160
160
|
const lastChild = heading.children[heading.children.length - 1];
|
|
161
161
|
if (lastChild?.type === 'text') {
|
|
162
|
-
lastChild.value += ` {#${id}}`;
|
|
162
|
+
lastChild.value += ` \\{#${id}\\}`;
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
165
165
|
// If last child is not text, add a new text node
|
|
166
166
|
heading.children.push({
|
|
167
167
|
type: 'text',
|
|
168
|
-
value: ` {#${id}}`,
|
|
168
|
+
value: ` \\{#${id}\\}`,
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
}
|
|
@@ -178,12 +178,6 @@ function applyInlineIds(translatedContent, idMappings) {
|
|
|
178
178
|
.use(remarkMdx)
|
|
179
179
|
.use(encodeAnglePlaceholders)
|
|
180
180
|
.use(remarkStringify, {
|
|
181
|
-
bullet: '-',
|
|
182
|
-
emphasis: '_',
|
|
183
|
-
strong: '*',
|
|
184
|
-
rule: '-',
|
|
185
|
-
ruleRepetition: 3,
|
|
186
|
-
ruleSpaces: false,
|
|
187
181
|
handlers: {
|
|
188
182
|
// Custom handler to prevent escaping of {#id} syntax
|
|
189
183
|
text(node) {
|
|
@@ -375,12 +375,6 @@ function transformMdxUrls(mdxContent, defaultLocale, targetLocale, hideDefaultLo
|
|
|
375
375
|
.use(remarkMdx)
|
|
376
376
|
.use(encodeAnglePlaceholders)
|
|
377
377
|
.use(remarkStringify, {
|
|
378
|
-
bullet: '-',
|
|
379
|
-
emphasis: '_',
|
|
380
|
-
strong: '*',
|
|
381
|
-
rule: '-',
|
|
382
|
-
ruleRepetition: 3,
|
|
383
|
-
ruleSpaces: false,
|
|
384
378
|
handlers: {
|
|
385
379
|
// Handler to prevent escaping (avoids '<' -> '\<')
|
|
386
380
|
text(node) {
|