phiresky/ripgrep-all

Pandoc error "Unknown option --markdown-headings"

Closed this issue · 2 comments

Describe the bug
Getting this error every time I run the command. I have an alias set up look to search across a specific directory. Error is suggesting that one of the pandoc options, --markdown-headings doesn't exist. Rest of the search completes just fine.

To Reproduce
Run the command look searchterm where look is an alias for rga -i $1 ~/Documents.

Attach example file:
Unfortunately it's a work file so I can't share a copy of it. But it's a .docx file, with file calling it a "Microsoft Word 2007+" file, if that helps at all.

Run command:

Output
➜ ~ look searchterm
/home/bob/Documents/Files/Infinity.docx: preprocessor command failed: '"/home/bob/apps/ripgrep_all-v0.10.6-x86_64-unknown-linux-musl/rga-preproc" "/home/bob/Documents/Files/Infinity.docx"':

/home/bob/Documents/Files/Infinity.docx adapter: pandoc
/home/bob/Documents/Files/Infinity.docx.txt adapter: postprocprefix
Unknown option --markdown-headings.
Try pandoc --help for more information.
Error: copying adapter output to stdout

Caused by:
0: subprocess: Command { std: "pandoc" "--from=docx" "--to=plain" "--wrap=none" "--markdown-headings=atx", kill_on_drop: false }
1: ExitStatus(unix_wait_status(1536))

Screenshots
If applicable, add screenshots to help explain your problem.

Operating System and Version
➜ ~ uname -a
Linux bobsmachine 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64 GNU/Linux

➜ ~ pandoc -v
pandoc 2.9.2.1
Compiled with pandoc-types 1.20, texmath 0.12.0.2, skylighting 0.8.5
Default user data directory: /home/bob/.local/share/pandoc or /home/bob/.pandoc

Output of rga --version
➜ ~ rga --version
ripgrep-all 0.10.6

I noticed this may be related to #252. At least, it seems to be getting hung around the same command.

Only pandoc 3+ is supported