gtx-cli 2.6.27 → 2.6.28

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,14 @@
1
1
  # gtx-cli
2
2
 
3
+ ## 2.6.28
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1063](https://github.com/generaltranslation/gt/pull/1063) [`e7b1bb0`](https://github.com/generaltranslation/gt/commit/e7b1bb079145809d66296c0ad6628079f784b88e) Thanks [@fernando-aviles](https://github.com/fernando-aviles)! - Adding CJK parser to gt-remark, bumping CLI
8
+
9
+ - Updated dependencies [[`e7b1bb0`](https://github.com/generaltranslation/gt/commit/e7b1bb079145809d66296c0ad6628079f784b88e)]:
10
+ - gt-remark@1.0.5
11
+
3
12
  ## 2.6.27
4
13
 
5
14
  ### Patch Changes
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "2.6.27";
1
+ export declare const PACKAGE_VERSION = "2.6.28";
@@ -1,2 +1,2 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
- export const PACKAGE_VERSION = '2.6.27';
2
+ export const PACKAGE_VERSION = '2.6.28';
@@ -5,7 +5,7 @@ import remarkFrontmatter from 'remark-frontmatter';
5
5
  import remarkStringify from 'remark-stringify';
6
6
  import { visit } from 'unist-util-visit';
7
7
  import { logger } from '../console/logger.js';
8
- import escapeHtmlInTextNodes from 'gt-remark';
8
+ import { escapeHtmlInTextNodes, normalizeCJKCharacters } from 'gt-remark';
9
9
  import { decode } from 'html-entities';
10
10
  /**
11
11
  * Generates a slug from heading text
@@ -273,6 +273,7 @@ function applyInlineIds(translatedContent, idMappings, escapeAnchors) {
273
273
  const stringifyProcessor = unified()
274
274
  .use(remarkFrontmatter, ['yaml', 'toml'])
275
275
  .use(remarkMdx)
276
+ .use(normalizeCJKCharacters)
276
277
  .use(escapeHtmlInTextNodes)
277
278
  .use(remarkStringify, {
278
279
  handlers: {
@@ -6,7 +6,7 @@ import remarkMdx from 'remark-mdx';
6
6
  import remarkFrontmatter from 'remark-frontmatter';
7
7
  import remarkStringify from 'remark-stringify';
8
8
  import { visit } from 'unist-util-visit';
9
- import escapeHtmlInTextNodes from 'gt-remark';
9
+ import { escapeHtmlInTextNodes, normalizeCJKCharacters } from 'gt-remark';
10
10
  import { createFileMapping } from '../formats/files/fileMapping.js';
11
11
  function stripQueryAndHash(url) {
12
12
  const match = url.match(/^[^?#]+/);
@@ -107,6 +107,7 @@ export function localizeRelativeAssetsForContent(content, sourcePath, targetPath
107
107
  const s = unified()
108
108
  .use(remarkFrontmatter, ['yaml', 'toml'])
109
109
  .use(remarkMdx)
110
+ .use(normalizeCJKCharacters)
110
111
  .use(escapeHtmlInTextNodes)
111
112
  .use(remarkStringify, {
112
113
  handlers: {
@@ -7,7 +7,7 @@ import remarkMdx from 'remark-mdx';
7
7
  import remarkFrontmatter from 'remark-frontmatter';
8
8
  import remarkStringify from 'remark-stringify';
9
9
  import { visit } from 'unist-util-visit';
10
- import escapeHtmlInTextNodes from 'gt-remark';
10
+ import { escapeHtmlInTextNodes, normalizeCJKCharacters } from 'gt-remark';
11
11
  const { isMatch } = micromatch;
12
12
  /**
13
13
  * Localizes static urls in content files.
@@ -390,6 +390,7 @@ function transformMdxUrls(mdxContent, defaultLocale, targetLocale, hideDefaultLo
390
390
  const stringifyProcessor = unified()
391
391
  .use(remarkFrontmatter, ['yaml', 'toml'])
392
392
  .use(remarkMdx)
393
+ .use(normalizeCJKCharacters)
393
394
  .use(escapeHtmlInTextNodes)
394
395
  .use(remarkStringify, {
395
396
  handlers: {
@@ -7,7 +7,7 @@ import remarkMdx from 'remark-mdx';
7
7
  import remarkFrontmatter from 'remark-frontmatter';
8
8
  import remarkStringify from 'remark-stringify';
9
9
  import { visit } from 'unist-util-visit';
10
- import escapeHtmlInTextNodes from 'gt-remark';
10
+ import { escapeHtmlInTextNodes, normalizeCJKCharacters } from 'gt-remark';
11
11
  import { createFileMapping } from '../formats/files/fileMapping.js';
12
12
  import { TEMPLATE_FILE_NAME } from './constants.js';
13
13
  function derivePublicPath(outDir, provided) {
@@ -180,6 +180,7 @@ function rewriteMdxContent(content, filePath, pathMap) {
180
180
  const s = unified()
181
181
  .use(remarkFrontmatter, ['yaml', 'toml'])
182
182
  .use(remarkMdx)
183
+ .use(normalizeCJKCharacters)
183
184
  .use(escapeHtmlInTextNodes)
184
185
  .use(remarkStringify, {
185
186
  handlers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "2.6.27",
3
+ "version": "2.6.28",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "files": [
@@ -92,7 +92,6 @@
92
92
  "esbuild": "^0.27.2",
93
93
  "fast-glob": "^3.3.3",
94
94
  "fast-json-stable-stringify": "^2.1.0",
95
- "gt-remark": "^1.0.1",
96
95
  "html-entities": "^2.6.0",
97
96
  "json-pointer": "^0.6.2",
98
97
  "jsonpath-plus": "^10.3.0",
@@ -110,7 +109,8 @@
110
109
  "unified": "^11.0.5",
111
110
  "unist-util-visit": "^5.0.0",
112
111
  "yaml": "^2.8.0",
113
- "generaltranslation": "8.1.12"
112
+ "generaltranslation": "8.1.12",
113
+ "gt-remark": "1.0.5"
114
114
  },
115
115
  "devDependencies": {
116
116
  "@babel/types": "^7.28.4",