Skip to content
TypeScript

fix(mobile): code blocks get a wrap button, long ordered lists keep their numbers (#20080)

Julius Marminged2d59fa7fe42
diff --git a/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.12.tgz b/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.12.tgz
deleted file mode 100644
index 5e7e41b02a3..00000000000
Binary files a/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.12.tgz and /dev/null differ
diff --git a/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.13.tgz b/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.13.tgz
new file mode 100644
index 00000000000..2ea48ea081a
Binary files /dev/null and b/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.13.tgz differ
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index 8d237815989..384edb70190 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -120,7 +120,7 @@
"react": "19.3.0",
"react-dom": "19.3.0",
"react-native": "0.88.0-rc.3",
- "react-native-enriched-markdown": "file:deps/react-native-enriched-markdown-1.2.0-t3.12.tgz",
+ "react-native-enriched-markdown": "file:deps/react-native-enriched-markdown-1.2.0-t3.13.tgz",
"react-native-gesture-handler": "~3.2.1",
"react-native-image-viewing": "^0.2.2",
"react-native-keyboard-controller": "1.22.6",
diff --git a/apps/mobile/src/native/EnrichedMarkdownText.tsx b/apps/mobile/src/native/EnrichedMarkdownText.tsx
index a3bbad9368d..0e0dada46b9 100644
--- a/apps/mobile/src/native/EnrichedMarkdownText.tsx
+++ b/apps/mobile/src/native/EnrichedMarkdownText.tsx
@@ -310,6 +310,7 @@ export function MobileEnrichedMarkdownText(props: SelectableMarkdownTextProps) {
admonitions: true,
}}
enableTaskListItemToggle={false}
+ enableCodeBlockWrapToggle
spoilerOverlay="solid"
onLinkPress={props.onLinkPress ? ({ url }) => props.onLinkPress?.(url) : undefined}
onLinkLongPress={onLinkLongPress}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1d25bc992f2..8115b19da1a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -532,8 +532,8 @@ importers:
specifier: 0.88.0-rc.3
react-native-enriched-markdown:
- specifier: file:deps/react-native-enriched-markdown-1.2.0-t3.12.tgz
+ specifier: file:deps/react-native-enriched-markdown-1.2.0-t3.13.tgz
react-native-gesture-handler:
specifier: ~3.2.1
version: 3.2.1(patch_hash=3037216c0dd1b14e8877441bde1a7404d1c6e9c09f835bd184c3cdba4aa066ad)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
@@ -10857,9 +10857,9 @@ packages:
'@types/react': '>=18'
react: '>=18'
- react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.12.tgz:
- resolution: {integrity: sha512-BoxolUQqAdiw7K0wXmBffD1aydbaJ64IdO8JpLib44TK9VszVPvumDcM7+VKpB3C3m4vjENHtLQk5gLjkVk0RQ==, tarball: file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.12.tgz}
- version: 1.2.0-t3.12
+ react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.13.tgz:
+ resolution: {integrity: sha512-m7BcMN2RCG3/7RftAXPbjwQhgzba9nGC+Fj16INzHyxCj1VQ4kCtS121WaqX7gXN28rLP/2n6AYUP3cwfr6svA==, tarball: file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.13.tgz}
+ version: 1.2.0-t3.13
peerDependencies:
katex: '>=0.16.0'
react: '*'
@@ -22073,7 +22073,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
- react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.12.tgz([email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]):
+ react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.13.tgz([email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected]):
dependencies:
react: 19.3.0
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 03a9cd9c6ee..34c3feda8e0 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -20,7 +20,7 @@ allowBuilds:
node-pty: true
# Ships N-API prebuilds; its install script only rebuilds from source.
objc-js: false
- "react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.12.tgz": true
+ "react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.13.tgz": true
sharp: true
tsc-rs: true
utf-8-validate: false