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

View File

@@ -5,3 +5,6 @@ packages:
ignoredBuiltDependencies:
- esbuild
patchedDependencies:
marked-terminal@7.3.0: patches/marked-terminal@7.3.0.patch