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

Support for file extensions other than .md #407

Closed
imschutz opened this issue Jul 8, 2022 · 0 comments · Fixed by #428
Closed

Support for file extensions other than .md #407

imschutz opened this issue Jul 8, 2022 · 0 comments · Fixed by #428
Labels
enhancement New feature or request

Comments

@imschutz
Copy link

imschutz commented Jul 8, 2022

Hi,

In current version, I noticed that usage of the pymarkdown tool is limited to files with extension .md.

That is due to

return path_to_test.endswith(".md")

I understand that this may be a default, but markdown can technically be used in any text file. I personally have a use case where the files are forced to have a different extension (due to a toolchain that renders the files), but for the most part they are still markdown and could very much use some linting :)

Expanding the existing function to checking against a list of extensions should be easy enough - if that would be a viable solution, I could perhaps propose a PR.

Thoughts?

@jackdewinter jackdewinter added the enhancement New feature or request label Jul 24, 2022
jackdewinter added a commit that referenced this issue Aug 6, 2022
* #407 : Adding support for alternate extensions.

* #419 : Fixed issue with trailing space in empty list item
jackdewinter added a commit that referenced this issue Aug 7, 2022
* #407 : Adding support for alternate extensions.

* #419 : Fixed issue with trailing space in empty list item

* #168 - Moved paragraph code to own module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants