Skip to content

Commit ca0191c

Browse files
Run pandoc adapter on HTML
required to effectively search in HTML files
1 parent fac63dc commit ca0191c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/adapters/custom.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ lazy_static! {
8080
name: "pandoc".to_string(),
8181
description: "Uses pandoc to convert binary/unreadable text documents to plain markdown-like text".to_string(),
8282
version: 3,
83-
extensions: strs(&["epub", "odt", "docx", "fb2", "ipynb"]),
83+
extensions: strs(&["epub", "odt", "docx", "fb2", "ipynb", "html"]),
8484
binary: "pandoc".to_string(),
85-
mimetypes: None,
85+
mimetypes: Some(strs(&["text/hmtl"])),
8686
// simpler markown (with more information loss but plainer text)
8787
//.arg("--to=commonmark-header_attributes-link_attributes-fenced_divs-markdown_in_html_blocks-raw_html-native_divs-native_spans-bracketed_spans")
8888
args: strs(&[

0 commit comments

Comments
 (0)