Skip to content
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

add config option to bin/marked #2937

Merged
merged 4 commits into from
Sep 3, 2023
Merged

Conversation

UziTech
Copy link
Member

@UziTech UziTech commented Aug 13, 2023

Marked version: 7.0.5

Markdown flavor: Marked CLI

Description

Load config with marked cli. This will allow extensions to be used with the marked cli.

TODO

  • docs
  • tests

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

@vercel
Copy link

vercel bot commented Aug 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marked-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 29, 2023 7:35am

'~/.marked.json',
'~/.marked.js',
'~/.marked/index.js'
];
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to consider .mjs and .cjs here too?

It might be better to ship this with only .json first and see if JS support is actually needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think the .js support will be more useful to be able to include extensions. .mjs and .cjs works for the config option. I don't think we need to include them by default.

@UziTech UziTech merged commit 65b6f14 into markedjs:master Sep 3, 2023
10 checks passed
@UziTech UziTech deleted the bin-config branch September 16, 2023 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to set "mangle" option if installed globally? Can't use extensions from CLI
2 participants