remark-cli no longer allows using multiple plugins via the --use
parameter
#1265
Closed
4 tasks done
Labels
💪 phase/solved
Post is done
Initial checklist
Affected packages and versions
12 (didn't seem to happen with version 11)
Link to runnable example
No response
Steps to reproduce
Navigate to https://stackblitz.com/edit/github-r8bday?file=package.json
Using the above stackblitz environment, the following will succeed (note the bad
--use
argument):npx --no-install remark --use remark-gfm --use x README.md
Yet the following will fail:
npx --no-install remark --use x --use remark-gfm README.md
This seems to happen because only the very first appearance of
--use
is honored, confirmed by:npx --no-install remark --use remark-remove-url-trailing-slash --use remark-gfm README.md
Which fails to properly parse the GitHub-flavored Markdown; compare that to:
npx --no-install remark --use remark-remove-url-trailing-slash --use remark-gfm README.md
Which fails to remove the trailing slash from the url. Further, debug output only ever says "1 plugin" loaded regardless of how many
--use
arguments I supply.Expected behavior
Debug output should indicate that two plugins are being loaded, and the actual output should reflect that both plugins were loaded.
Actual behavior
Debug output indicates that one plugin was loaded regardless of how many
--use
arguments are provided. remark's actual output confirms that only the very first--use
argument is acknowledged.Runtime
Other (please specify in steps to reproduce)
Package manager
Other (please specify in steps to reproduce)
OS
Linux
Build and bundle tools
Other (please specify in steps to reproduce)
This issue cropped up while upgrading some remark packages: Xunnamius/unified-utils#96 (comment). Specifically, several of my integration tests started failing.
The text was updated successfully, but these errors were encountered: