From 763e9de4967c25bb1c0a1daae11ec8fd399a3072 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Thu, 11 May 2023 11:13:50 -0400 Subject: [PATCH] fix: Clarify deprecation messages for default parameters (#2802) * Clarify deprecation messages for default parameters * Tweak actionable steps to be more explicit. --- src/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers.js b/src/helpers.js index d6e41900f3..034dd8efd2 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -250,7 +250,7 @@ export function checkDeprecations(opt, callback) { } if (opt.mangle) { - console.warn('marked(): mangle 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-mangle.'); + console.warn('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}`.'); } if (opt.baseUrl) { @@ -266,7 +266,7 @@ export function checkDeprecations(opt, callback) { } if (opt.headerIds || opt.headerPrefix) { - console.warn('marked(): headerIds and headerPrefix parameters are 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-gfm-heading-id.'); + console.warn('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}`.'); } }