@widergy/mobile-ui 1.48.0 → 1.48.1

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.48.1](https://github.com/widergy/mobile-ui/compare/v1.48.0...v1.48.1) (2025-06-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * force version bump ([bb6188a](https://github.com/widergy/mobile-ui/commit/bb6188a9c3e3b4f0efed3ad51a74003aa7134074))
7
+
1
8
  # [1.48.0](https://github.com/widergy/mobile-ui/compare/v1.47.0...v1.48.0) (2025-06-02)
2
9
 
3
10
 
package/README.md CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  # mobile-ui
2
3
  ## Widergy mobile team components
3
4
 
@@ -35,13 +35,3 @@ export const WEIGHTS = {
35
35
  extrabold: 800,
36
36
  black: 900
37
37
  };
38
-
39
- export const MARKDOWN_FORMATTING = {
40
- BR_SEQUENCE_REGEX: /(<br\s*\/?>)+/gi,
41
- BR_TAG_REGEX: /<br\s*\/?>/gi,
42
- CARRIAGE_RETURN_REGEX: /\r\n|\r/g,
43
- HR_TAG_REGEX: /<\s*hr\s*\/?>/gi,
44
- LINE_BREAK_MARK: '\n\u200b',
45
- LINE_BREAKS_REGEX: /\n+/g,
46
- NORMALIZED_HR: '\n\n---'
47
- };
@@ -1,23 +1,5 @@
1
- import { MARKDOWN_FORMATTING } from './constants';
2
-
3
- const {
4
- BR_SEQUENCE_REGEX,
5
- BR_TAG_REGEX,
6
- CARRIAGE_RETURN_REGEX,
7
- HR_TAG_REGEX,
8
- LINE_BREAK_MARK,
9
- LINE_BREAKS_REGEX,
10
- NORMALIZED_HR
11
- } = MARKDOWN_FORMATTING;
12
-
13
- export const markdownFormat = content => {
14
- return content
1
+ export const markdownFormat = content =>
2
+ content
15
3
  ?.toString()
16
- .replace(CARRIAGE_RETURN_REGEX, '\n')
17
- .replace(LINE_BREAKS_REGEX, match => LINE_BREAK_MARK.repeat(match.length))
18
- .replace(BR_SEQUENCE_REGEX, match => {
19
- const count = match.match(BR_TAG_REGEX)?.length || 0;
20
- return LINE_BREAK_MARK.repeat(count);
21
- })
22
- .replace(HR_TAG_REGEX, NORMALIZED_HR);
23
- };
4
+ .replace(/(<\s*br\s*\/?>|\n)/gi, '\n\n')
5
+ .replace(/(<\s*hr\s*\/?>)/gi, '\n\n---') || null;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "1.48.0",
5
+ "version": "1.48.1",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [