Repository navigation
Move the Markdown engine into the repository and fix two Android list layouts - #10499
Merged
Merged
Conversation
…h applied Copy react-native-enriched-markdown@1.2.0-nightly-20261014-766fc0e67 (upstream software-mansion/enriched-markdown 766fc0e67) into packages/react-native-enriched-markdown, with patches/react-native-enriched-markdown+1.2.0-nightly-20261014-766fc0e67.patch applied. Nothing else changes in this commit; the package is not a workspace yet. Reproduce: npm pack react-native-enriched-markdown@1.2.0-nightly-20261014-766fc0e67 tar xzf react-native-enriched-markdown-*.tgz mkdir -p t/node_modules && mv package t/node_modules/react-native-enriched-markdown (cd t && git init -q && git apply ../patches/react-native-enriched-markdown+*.patch) diff -r t/node_modules/react-native-enriched-markdown packages/react-native-enriched-markdown The diff is empty.
Make packages/react-native-enriched-markdown a private workspace and point the app at it, then remove the patch-package patch it replaces. - package.json: private, version follows the root like every workspace, only the postinstall script that downloads tree-sitter grammars. Upstream's devDependencies would install a second react-native, so they are gone. - The package keeps its name, so autolinking, the Gradle project :react-native-enriched-markdown, the CocoaPods spec and imports are unchanged. - Lockfile: drop the nested registry copy under packages/app/node_modules; npm links node_modules/react-native-enriched-markdown to the workspace. - Formatting, lint and knip skip the vendored code. CI routes changes to it through the app and browser suites. - The codegen test checks the vendored package's generated props. - docs/markdown-renderer.md describes the fork and how to edit it.
From #9964, moved from the package patch into the vendored package. On Android, a numbered list nested in a bulleted item drew "1." over the first letters of each item. A nested item's text indent summed the root list's narrow bullet column with a fixed marginLeft, while its marker was right-aligned to its own wider "99." column, so the number landed on the text. iOS already indents from the item's own column. Backport the Android hunks of upstream enriched-markdown #1015 (size the number column to the widest marker) and #1023 (nested items start their text from their own marker column). test:android now also runs the backported ListRenderingTest and TaskListInteractionTest suites. docs/markdown-renderer.md lists the fork's backports, this one and #924, which the removed postinstall comment used to track. The vendored tree equals the #9964 patch applied to the pristine package.
From #10380, moved from the package patch into the vendored package. On Android, an assistant reply with blockquotes nested inside a list could overlap its "Worked for ..." footer and the next user message: the displayed text and the layout measurement applied spans in different orders, and the list-wide line height inflated the blockquote spacers when it ran after them. Use the same span order for Android Markdown measurement and display. Apply list line height before blockquote spacers so nested quotes keep their configured padding and the reply fits above the turn footer. test:android now also runs ListBlockquoteMeasurementTest. Applied on top of #9964; the two changes share only ListRenderer.kt, where #10380's import and line-height call sit beside #9964's marker width code. Every other file equals the #10380 patch applied to the pristine package.
…its build The package patch changed lib/module/web/renderers/BlockRenderers.js (the renderers.codeBlock override and the zoom-in cursor on images) but not src/web/renderers/BlockRenderers.tsx. The app runs lib, so behavior does not change. Port both changes into src so src stays the source of lib.
Contributor
Confidence 4/5The first commit matches the patched npm package, and both Android fixes carry over from their prior patches. What changesAndroid readers get readable list markers and chat replies where nested Markdown previously overlapped.
Size+87,286/−8 production · +1,649/−4 tests and fixtures · +32,685/−0 generated output · +922/−4 manifests and configuration · +339/−12 docs and licenses · +21/−18 lockfile · +0/−3,998 replaced patch
What I verified
Reviews (1) · Last reviewed commit: b5913fd2a · Reviewed by Paseo |
This was referenced Nov 23, 2026
camerontaylor
added a commit
to camerontaylor/paseo
that referenced
this pull request
Nov 25, 2026
Merge upstream v0.17.4 (2b3559b) into custom. Resolve against v0.17.0-beta.1, which custom already contains, because the release branch does not carry it and Git picked the 0.16.2 merge base. Graft upstream deferred ACP turns (getpaseo#10310) onto the fork's prompt lane, shared and vendor turns, steering and detach, with every local terminal deduplicated. Adopt agent queue, steer and interrupt (getpaseo#10483) while keeping the fork's skill and expected-turn steer guards. Port provider accounts onto the new provider pages (getpaseo#9661). Move the Android table and text selection change into the vendored enriched-markdown engine (getpaseo#10499), which replaces the patch file. Regenerate the lockfile and Nix dependency hash. Per-file decisions are in fork/CHANGELOG.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue
Refs #7240: this moves the engine into the repository. The engine rework that issue describes is still to do.
Type of change
Reasoning
Three open PRs (#9964, #10380, #9429) and several contributor PRs each grow the same 1.17 MB
patch-packagepatch forreact-native-enriched-markdown. You can't review a patch to a patch, and two PRs that touch it always conflict, even when they change different files. This PR moves the library into the repository as a private workspace,packages/react-native-enriched-markdown. After this, a Markdown engine fix is a normal source diff.Users get the two Android fixes from #9964 and #10380:
Nothing else changes for users.
Goals
1.2.0-nightly-20261014-766fc0e67with the existing patch applied, byte for byte. You can check it with the steps in its commit message.:react-native-enriched-markdown) and CocoaPods resolve the same package name from the workspace. Only one copy is installed."private": trueand is not inPUBLISH_WORKSPACES. Its version follows the root version like every other workspace.Non-goals
lib/build output and checked-in codegen, so no bob or Emscripten build step joins CI.Commits
chore(app): vendor react-native-enriched-markdown with the Paseo patch applied: a verbatim copy, 906 files, inert by itself.chore(app): consume react-native-enriched-markdown from its workspace:package.jsonfor the package, root and app; the lockfile drops the nested registry copy.postinstall-patches.mjsentry.fix(app): keep numbered sub-list markers off their text on Android: fix(app): keep numbered sub-list markers off their text on Android #9964.fix(app): keep Android assistant replies inside their turns: Keep Android assistant replies from overlapping the next message #10380. It shares onlyListRenderer.ktwith fix(app): keep numbered sub-list markers off their text on Android #9964, and the hunks don't overlap.chore(app): match the vendored Markdown web block renderer source to its build: the old patch changedlib/.../BlockRenderers.js(therenderers.codeBlockoverride and the imagezoom-incursor) but not itssrc. This ports both changes tosrc. The app runslib, so runtime behavior is unchanged.Supersedes
ListBlockquoteMeasurementTest, moved into the package.Other open PRs that edit the patch need to move their hunks into
packages/react-native-enriched-markdownafter this merges: #9429, #9319, #10257, #9880 and #9587.QA
Run locally on Linux at
b5913fd2a:git apply) equals commit 1's tree byte for byte, file modes included.main.npm installcreates onenode_modules/react-native-enriched-markdownsymlink to the workspace and leaves the lockfile unchanged. The packagepostinstalldownloads the grammars into the ignored directories.npm run build:app-deps,npm run typecheck,npm run lint(0 errors) andnpm run format:checkpass.node --test scripts/*.test.mjs: the codegen tests pass for iOS and Android, andci-workflow.test.mjspasses 29/29.merge-mac-manifest,stamp-rolloutandvalidate-desktop-manifestsfail the same way onmain; they are Vitest files.renderers.web.browser.test.tsxand assistant selection copy (66 tests) pass.npm run test:android --workspace=@getpaseo/appbuilds:react-native-enriched-markdownfrom the workspace through autolinking and passes 26 Robolectric tests:InlineCodeFormattingTest3,ListRenderingTest18,TaskListInteractionTest3,ListBlockquoteMeasurementTest2.Not run: an iOS build (CocoaPods/Xcode), an EAS build, a device or simulator pass, and the Nix desktop build.
Risk surface
packages/react-native-enriched-markdownthrough the rootnode_modulessymlink. It used to build frompackages/app/node_modules.test:android. CocoaPods and an EAS build were not run.build.gradleread the app'senriched-markdownblock frompackages/app/package.jsonas before.packages/coreand a rootvendor/. Neither path exists here, and the doc says not to add them.npm installruns the package'spostinstall, which downloads the tree-sitter grammars into gitignoredcpp/highlight/vendor/{grammars,tree-sitter}. The npm package did the same download before.nix/npm-deps.hashis not updated here. The lockfile no longer fetches the registry tarball, so thenix-update-hashbot refreshes the hash onmain.sync-workspace-versionsandnpm versionnow bump its version with the others, so it starts at0.17.1.PUBLISH_WORKSPACESandrelease:checkare unchanged.