Skip to content

Commit

Permalink
fix: only warn if langPrefix is changed (#2796)
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed May 6, 2023
1 parent 17315bc commit d193694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export function checkDeprecations(opt, callback) {
console.warn('marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options');
}

if (opt.highlight || opt.langPrefix) {
if (opt.highlight || opt.langPrefix !== 'language-') {
console.warn('marked(): highlight and langPrefix 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-highlight.');
}

Expand Down

1 comment on commit d193694

@vercel
Copy link

@vercel vercel bot commented on d193694 May 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.