github-markdown-toc
github-markdown-toc copied to clipboard
Fixed an issue in which the file path containing spaces could not be grepped
When running a script on path "/home/foo bar/test.md", there was a problem that the file path was not grep properly like this
grep ./home/foo/: No such file or directory grep bar: No such file or directory grep name: No such file or directory grep test.md No such file or directory
So I solved the problem by adding a comma to $gh_src
Thanks for the fix! Could you, please, add some test for this case.
I forgot about the test. added it please check thanks a lot
There was a problem when using it with the insert flag, but the test did not reflect it, so I modified it