npm / marked-terminal
marked-terminal
What changed in marked-terminal 4 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-30.
10 breaking7 new APIs and options5 behavior and defaults1 tooling6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmarked-terminal 820 changes
Breaking changes 7
The default export is removed; use the markedTerminal extension.
The package is ESM-only; require('marked-terminal') still works through Node's native require(esm).
Remote images are downloaded only when remote is true.
Requires marked >= 13 and supports marked up to v18.
Requires Node.js >= 22.12.
The TerminalRenderer class is removed; use the markedTerminal extension.
Top-level lists are no longer indented; nested lists remain indented by tab.
New APIs and options 6
Adds an option to turn clickable terminal links on or off; when unset, detection uses stdout.
Adds an option to draw images in the terminal using supported graphics protocols or colored half blocks.
Use the markedTerminal extension with marked.use to override marked's renderer.
New CLI renders Markdown files or piped shell input.
The mt CLI draws images by default; --no-images disables image drawing.
Adds a CLI flag for remote image handling.
Behavior and default changes 2
Default styles use node:util's styleText instead of chalk; custom style options continue to work as before.
Tables shrink to fit width when reflowText is on.
Tooling 1
TypeScript types are bundled, so remove @types/marked-terminal.
Fixes and other changes 4
GFM task lists render correctly.
Bold, italic, code, and other inline formatting in list items render again with marked v13+.
Removes extra blank lines in nested lists when colors are on.
Lists are now wrapped when reflowText is on.
marked-terminal 72 changes
Breaking changes 1
Replaces cardinal with cli-highlight, which might require changes to custom options used for highlighting.
Fixes and other changes 1
Adds support for marked v12.
marked-terminal 63 changes
Breaking changes 1
Node 14 is no longer on the support list, so compatibility can no longer be guaranteed.
New APIs and options 1
Adds a use extension for integrating marked-terminal.
Behavior and default changes 1
Adds support for marked up to v9.
marked-terminal 52 changes
Breaking changes 1
ECMAScript Modules are used by default, which may affect existing projects.
Behavior and default changes 1
Adds support for marked v3 and v4.
marked-terminal 42 changes
Behavior and default changes 1
The image option can be overridden with a function receiving href, title, and text.
Fixes and other changes 1
Adds support for marked 0.8.0.