LeaVerou / md-block

A custom element for rendering stylable (light DOM) Markdown
https://md-block.verou.me
MIT License
324 stars 17 forks source link

Noisy warnings from `marked` dependency #21

Open andrewens opened 10 months ago

andrewens commented 10 months ago

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

  1. 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}.

  2. 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.

  3. 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}.

  4. 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}.

  5. 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.

  6. 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}.

LeaVerou commented 10 months ago

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

P13L0v3r commented 7 months ago

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