fix: patch in #366 and #367 for marked-terminal (#916)

This PR uses [`pnpm
patch`](https://www.petermekhaeil.com/til/pnpm-patch/) to pull in the
following proposed fixes for `marked-terminal`:

* https://github.com/mikaelbr/marked-terminal/pull/366
* https://github.com/mikaelbr/marked-terminal/pull/367

This adds a substantial test to `codex-cli/tests/markdown.test.tsx` to
verify the new behavior.

Note that one of the tests shows two citations being split across a line
even though the rendered version would fit comfortably on one line.
Changing this likely requires a subtle fix to `marked-terminal` to
account for "rendered length" when determining line breaks.
This commit is contained in:
Michael Bolin
2025-05-13 12:29:17 -07:00
committed by GitHub
parent dd354e2134
commit 1ff3e14d5a
5 changed files with 141 additions and 11 deletions

9
pnpm-lock.yaml generated
View File

@@ -9,6 +9,11 @@ overrides:
micromatch: ^4.0.8
semver: ^7.7.1
patchedDependencies:
marked-terminal@7.3.0:
hash: 536fe9685e91d559cf29a033191aa39da45729949e9d1c69989255091c8618fb
path: patches/marked-terminal@7.3.0.patch
importers:
.:
@@ -66,7 +71,7 @@ importers:
version: 15.0.8
marked-terminal:
specifier: ^7.3.0
version: 7.3.0(marked@15.0.8)
version: 7.3.0(patch_hash=536fe9685e91d559cf29a033191aa39da45729949e9d1c69989255091c8618fb)(marked@15.0.8)
meow:
specifier: ^13.2.0
version: 13.2.0
@@ -4105,7 +4110,7 @@ snapshots:
make-error@1.3.6: {}
marked-terminal@7.3.0(marked@15.0.8):
marked-terminal@7.3.0(patch_hash=536fe9685e91d559cf29a033191aa39da45729949e9d1c69989255091c8618fb)(marked@15.0.8):
dependencies:
ansi-escapes: 7.0.0
ansi-regex: 6.1.0