-
Notifications
You must be signed in to change notification settings - Fork 176
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
pandoc adapter fails on *.htm files #205
Comments
This custom adapter works without conflicting with normal html:
|
Oh right, I forgot to update the issue! |
Hi! G:\...\myfile.htm.txt adapter: postprocprefix
Unknown input format htm
Error: copying adapter output to stdout
Caused by:
0: subprocess: Command { std: "pandoc" "--from=htm" "--to=plain" "--wrap=none" "--markdown-headings=atx", kill_on_drop: false }
1: ExitStatus(ExitStatus(21)) The custom adapter doesn't work for me. |
You have to add the config for the custom adapter in the rga-config. Depending on system configuration the location may vary, but normally it should be at {
"$schema": "./config.schema.json",
"custom_adapters": [
{
"name": "htm-pandoc",
"version": 1,
"description": "Uses pandoc to transform htm files",
"extensions": ["htm"],
"mimetypes": ["application/x-extension-htm","application/htm"],
"binary": "pandoc",
"args": ["--from=html", "--to=plain", "--wrap=none", "--markdown-headings=atx"],
"disabled_by_default": false,
"match_only_by_mime": false
},
{
"name": "gron",
"version": 1,
"description": "Transform JSON into discrete JS assignments",
"extensions": ["json"],
"mimetypes": ["application/json"],
"binary": "gron",
"args": [],
"disabled_by_default": false,
"match_only_by_mime": false
}
]
} |
Describe the bug
When searching across ebooks the pandoc adapter fails due to an
Unknown input format htm
error in pandoc.I originally wanted to solve this by defined as custom adapters but then both are in conflict with each other.
Possible Solution
Instead of doing something like
do something like that
for htm files.
Operating System and Version
Manjaro Linux
Output of
rga --version
ripgrep-all 0.10.6
The text was updated successfully, but these errors were encountered: