boyter / scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
MIT License
6.57k stars 262 forks source link

Add support for MDX file extension #439

Closed NathanielHill closed 5 months ago

NathanielHill commented 6 months ago

Sorry, do not have time to contribute, but wanted to add this in case it adds any value as a backlog item.

Feel free to close, will not be offended.

MDX has been around for a few years and is frequently used in frontend sites for text heavy content like blog posts.

https://mdxjs.com/docs/what-is-mdx/

boyter commented 6 months ago

Ill have a play around later to adding this.

sgoggins commented 5 months ago

@boyter : The syntax in these files appears to be quite similar to, if not entirely, the syntax dynamics of markdown. This might be a quick add. Here's a whole directory of files like this for quick reference: https://github.com/hashicorp/terraform/tree/main/website/docs

boyter commented 5 months ago

Neat. Merged in. Thanks so much for adding it.