-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
Support for .mdx files #211
Comments
Hey @malouro, definitely no objections! Since we advertise as editing markdown files, let's start with passing an option like |
FWIW, I'm actually running this tool on
The "problem" I have is that the So, I wonder if there can be a configuration option to change the |
@AndrewSouthpaw is this still open for contribution? |
Yep I can review contributions, just tag me as a reviewer and @ me. |
Hey all, we'd like to use this tool to generate TOCs in a bunch of
.mdx
files, though it seems like out-of-the-box it only supports.md
and.markdown
. How does adding.mdx
to the list of valid markdown extensions sound? Or, alternatively, a way to pass in user-defined file extension(s) via some CLI flag? (--ext=mdx
?)In the meantime, as a workaround, we've been using something like
find . -name "*.mdx" | xargs doctoc ...
, though it'd be nice to have it handled & supported viadoctoc
itself.Thanks!
The text was updated successfully, but these errors were encountered: