-
Notifications
You must be signed in to change notification settings - Fork 56
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
Suggestion: Pass directory and possibly with a recursive option #28
Comments
Hmm. This looks like a glob star expansion issue on Windows. I have a Parallels VM with Windows on it that I can test on. Adding this to the stack of issues to fix. |
On Windows, if you have Git Bash, you can run something like |
That seems like a solid work-around. Can you test with WSL as well on Windows? Then I can close this issue. |
Here is what I found: Assuming you have defined an npm script like this:
Opening a git bash terminal (or setting it up as the integrated terminal on vs code) and running However, if in the git bash terminal you run With WSL, both Note: With WSL, as a first time user just for this test, I had to solve a path issue and install npm and nodejs again on my Linux distro. |
Suggestion for now: rather than add a recursive feature, do that in the outer controlling shell either with Try:
Will recursively list all the |
Hi! I'm seeking too to have nested jsons, based on the folder structure on which I'm using m2a. Can you suggest me a way to achieve this? |
@ph1-xyz The solution above did not work for you? |
Currently, I've written a PowerShell script to loop thru all markdown files in a directory and sub-directories and then pass the list of files. Would be great to have a built in option to do this instead.
P.S. I've tried the command
./node_modules/.bin/m2j -o index.json ./mddata/*.md
but I get this error:Error: ENOENT: no such file or directory, lstat './mddata/*.md'
.The text was updated successfully, but these errors were encountered: