-
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
fix: deprecate options #2766
fix: deprecate options #2766
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to make syntax highlighting completely opt in?
An extension that could be added like middleware. Thinking PHP League\Commonmark and Spatie\CommonmarkHighlighter.
I recognize with this solution users can use any highlighter. I'm wondering if it's possible for users to be able to use any highlighter and for Marked to not have to explicitly consider it.
Yes I could create a That might be better. Then we can deprecate the highlighter option. |
I agree. Better to break it out into an extension. |
I created I updated the docs to recommend using |
Co-authored-by: Steven <steven@ceriously.com>
I also deprecated the |
And I will create an extension for |
I think I am done working on this. I got all of the unnecessary options deprecated and moved to extensions. @joshbruce @calculuschild @styfle can you review this again? |
# [5.0.0](v4.3.0...v5.0.0) (2023-05-02) ### Bug Fixes * deprecate options ([#2766](#2766)) ([62d3312](62d3312)) * update min node to v18 ([#2767](#2767)) ([c6852f5](c6852f5)) ### Features * add block param to html renderer ([#2768](#2768)) ([fa21b9f](fa21b9f)) ### BREAKING CHANGES * deprecate options * minimum supported node version v18
The marked option `{ smartypants: true }` has been deprecated so we must use `marked-smartypants` here instead Note: Metalsmith’s `jstransformer-marked` still uses `marked@4.3.0` so we can’t migrate to `marked-smartypants` markedjs/marked#2766
The marked option `{ smartypants: true }` has been deprecated so we must use `marked-smartypants` here instead Note: Metalsmith’s `jstransformer-marked` still uses `marked@4.3.0` so we can’t migrate to `marked-smartypants` markedjs/marked#2766
The marked option `{ smartypants: true }` has been deprecated so we must use `marked-smartypants` here instead Note: Metalsmith’s `jstransformer-marked` still uses `marked@4.3.0` so we can’t migrate to `marked-smartypants` markedjs/marked#2766
The marked option `{ smartypants: true }` has been deprecated so we must use `marked-smartypants` here instead Note: Metalsmith’s `jstransformer-marked` still uses `marked@4.3.0` so we can’t migrate to `marked-smartypants` markedjs/marked#2766
Description
Deprecate the following options:
highlight
,langPrefix
, andcallback
mangle
baseUrl
smartypants
xhtml
headerIds
andheaderPrefix
This will be a breaking change so should be done in the next major version.
This only deprecates the options it does not remove them yet. Ideally we will deprecate these in v5.0.0 and remove them in a later major release.
Contributor
Committer
In most cases, this should be a different person than the contributor.