@adobe/helix-importer 1.12.1 → 1.12.2

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,3 +1,10 @@
1
+ ## [1.12.2](https://github.com/adobe/helix-importer/compare/v1.12.1...v1.12.2) (2022-04-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * invisible characters ([8c9daeb](https://github.com/adobe/helix-importer/commit/8c9daebab6e50df3dea693335df4d302ea4f4b39))
7
+
1
8
  ## [1.12.1](https://github.com/adobe/helix-importer/compare/v1.12.0...v1.12.1) (2022-04-19)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-importer",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "Helix Importer tool: create md / docx from html",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -30,7 +30,7 @@ export default class MDUtils {
30
30
  const r = [c.length].map(() => ' ').join('');
31
31
  ret = ret.replace(reg, r);
32
32
  }
33
- ret = ret.replace(/\u00A0/gm, '');
33
+ ret = ret.replace(/\u00A0/gm, ' ');
34
34
  }
35
35
  return ret;
36
36
  }
@@ -95,4 +95,12 @@ describe('MDUtils#cleanupMarkdown tests', () => {
95
95
  'replace weird spaces',
96
96
  );
97
97
  });
98
+
99
+ it('MDUtils#cleanupMarkdown replace invisible characters', () => {
100
+ strictEqual(
101
+ MDUtils.cleanupMarkdown('Vols à partir de Paris'),
102
+ 'Vols à partir de Paris',
103
+ 'replace invisble characters',
104
+ );
105
+ });
98
106
  });