phiresky / ripgrep-all

rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
Other
6.4k stars 148 forks source link

epub failed: pandoc does not reconize the `--atx-headers` options #189

Closed g-berthiaume closed 7 months ago

g-berthiaume commented 8 months ago

Describe the bug I'm trying to use rga to look at an epub. rga seems to be trying to use pandoc with an invalid flag. This seems to be the case for every epub I'm trying on my machine.

To Reproduce

$ rga "my-keyword" .

.\test.epub: preprocessor command failed: '"C:\\mytest\\rga-preproc" ".\\test.epub"':
-------------------------------------------------------------------------------
adapter: pandoc
Unknown option --atx-headers.
Try pandoc.exe --help for more information.
Error: The pipe has been ended. (os error 109)
-------------------------------------------------------------------------------

Operating System and Version image

Thanks for rga, it's a great tool!

phiresky commented 8 months ago

This is fixed in 1.0.0-beta

g-berthiaume commented 8 months ago

Hi @phiresky, Thanks for your answer. I'll wait for the beta release.

Have a good day!

lafrenierejm commented 8 months ago

This is fixed in 1.0.0-beta

@phiresky Heads up that I don't see any tag or branch for a beta release. The latest I'm seeing is v1.0.0-alpha.5.

phiresky commented 7 months ago

True, I misspoke. This is fixed in the alpha release.