ITADN

CLI Does not Work in 18.0.3

#3965Opendonatj 创建于 2026-05-04
D
donatjcommented
Upgraded to marked 18 this weekend. We build our pages using the CLI tool it seems the CLI tool no longer works. https://github.com/donatj/force-color.org/issues/105 <img width="1122" height="565" alt="Image" src="https://github.com/user-attachments/assets/3d79cb62-ef70-4b29-8ddd-ef3c0b0ff8d7" /> **Marked version:** 18.0.3 **Describe the bug** If you try to run the CLI, you just get an HTML output of it's main invocation <img width="821" height="576" alt="Image" src="https://github.com/user-attachments/assets/c05ecc04-ae12-4453-b490-15aa5514d42f" /> **To Reproduce** ``` $ npx marked ``` <!-- If possible, use the Marked Demo permalink and compare to the CommonMark Dingus permalink to demonstrate the bug --> <!-- 1. [Marked Demo](https://marked.js.org/demo/) 2. [CommonMark Demo](https://spec.commonmark.org/dingus/) --> <!-- If you need a specific version and options to reproduce the bug, use the following template --> <!-- 1. Install marked `npm install --save marked@0.3.19` with the version you are using 2. Run marked with input string and options such as `marked('hello *world*', {gfm: true})` 3. Actual output (or error) is... --> **Expected behavior** npx CLI tool to run as usual.
2 条评论