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
feat: export bin/marked #2629
feat: export bin/marked #2629
Conversation
This allows tools like marked-man to extend marked and still use its cli.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
For example: #!/usr/bin/node
import { markedMan } from 'marked-man';
import { marked } from 'marked';
marked.use(markedMan);
import 'marked/bin/marked'; That makes it easy for an extension to be callable from command-line. |
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.
LGTM
# [4.2.0](v4.1.1...v4.2.0) (2022-10-31) ### Features * export bin/marked ([#2629](#2629)) ([bd8aad9](bd8aad9))
That's super cool, and marked 4 is so much easier to use. |
Awesome! Maybe we should use marked-man in marked to keep our man file up to date. |
I've started updating marked-man to run with latest marked 4.2, so wait a little bit. I'll submit a PR when ready. |
This allows tools like marked-man to extend marked and still use its cli.