md-block icon indicating copy to clipboard operation
md-block copied to clipboard

Noisy warnings from `marked` dependency

Open andrewens opened this issue 1 year ago • 2 comments

When I use md-block, it outputs a lot of warnings to console from the marked module. These are the warnings I get:

marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting {mangle: false}.

helpers.js:261 marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants.

helpers.js:269 marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting {headerIds: false}.

helpers.js:253 marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting {mangle: false}.

helpers.js:261 marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants.

helpers.js:269 marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting {headerIds: false}.

andrewens avatar Jan 09 '24 21:01 andrewens

Thanks! Looks like an easy fix, though I don't have the time rn. Happy to merge a PR though!

LeaVerou avatar Jan 10 '24 00:01 LeaVerou

Issue still isn't fixed, any suggestions for a workaround?

P13L0v3r avatar Apr 14 '24 05:04 P13L0v3r