-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI deprecation warning #2797
Comments
In the release notes for v5.0.1 it explains why and what you can do about it. |
@UziTech Perhaps the warning messages could be more clear on this:
|
Ya we tried to keep the warnings short. |
Do you mind if I make a PR to add those extra words? I think it might be worth the added length if it gives our users a more clear indication of what's going on. |
Sounds good to me. 👍 |
Thanks @UziTech, I modified the command, and these 2 did the trick:
|
How do you configure it so --no-mangle option is used by default? I've tried setting this option to false in src/default.js, but it didn't seem to pick it up on subsequent invocations. |
@danielkrajnik "scripts": {
"changelog": "marked --no-mangle --no-header-ids --gfm -i CHANGELOG.md -o docs/changelog.html"
} |
thanks, sorry, I may be asking wrong question, but I'm trying to install marked.js globally and configure it's default behaviour - I was hoping that it reads configuration files from some standard directory like As a temporary workaround I've edited marked.js directly, ( Not sure if configuring globally installed npm modules is even possible? |
can you not just add an alias in your shell? e.g. alias md='marked --no-mangle --no-header-ids --gfm -i ' then you'd just use this like this: md page.md -o page.html |
You are right that this would work, putting it in .profile or /etc/profile would ensure that other programs would pick it up as well, but I hoped that npm had a dedicated place for these changes. It would make it easier to maintain it later on, because normally you expect all program-specific configuration to live inside .config, /etc or other standard locations. .bashrc/.zshrc is normally used only for "personal customisations" and this seems to be part of "application logic". |
@danielkrajnik PRs are always welcome 😁👍 |
Marked version
5.0.1
Describe the bug
Since the last upgrade (from v4.x to 5.0.1) I'm seeing the following warnings:
I don't use the js API, just run the CLI via npm scripts.
To Reproduce
This is the command I use:
marked --gfm -i CHANGELOG.md -o changelog.html
Expected behavior
No warnings :-)
The text was updated successfully, but these errors were encountered: