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

Adds support for options #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

flowsn4ke
Copy link

@flowsn4ke flowsn4ke commented Dec 10, 2020

👋 I've added support for options in the plugin, but passing options is of course optional, not passing any doesn't break things!

I've tested it with both markdown (through unified) and .mdx (through next-mdx-remote), everything works out of the box!

(I also updated the documentation accordingly to showcase examples with and without options for both markdown and mdx)

Cheers 🙃

You can now use the plugin like this: unified().use(markdown).use(capitalize, { options }), yet not passing options doesn't break anything => options are an array of titles with their special casing e.g. ['iPhone', 'facebook', 'GraphQL']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant