Support more plaintext filetypes ()

* Add more plaintext document types

org-mode, asciidoc, and reStructuredText are all text formats

Signed-off-by: Christian Romney <christian.a.romney@gmail.com>

* lint

---------

Signed-off-by: Christian Romney <christian.a.romney@gmail.com>
Co-authored-by: Christian Romney <christian.a.romney@gmail.com>
This commit is contained in:
Timothy Carambat 2024-02-19 10:44:01 -08:00 committed by GitHub
parent 755df4dbba
commit 49fbd09af4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
const WATCH_DIRECTORY = require("path").resolve(__dirname, "../hotdir");
const ACCEPTED_MIMES = {
"text/plain": [".txt", ".md"],
"text/plain": [".txt", ".md", ".org", ".adoc", ".rst"],
"text/html": [".html"],
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": [
@ -27,6 +27,10 @@ const ACCEPTED_MIMES = {
const SUPPORTED_FILETYPE_CONVERTERS = {
".txt": "./convert/asTxt.js",
".md": "./convert/asTxt.js",
".org": "./convert/asTxt.js",
".adoc": "./convert/asTxt.js",
".rst": "./convert/asTxt.js",
".html": "./convert/asTxt.js",
".pdf": "./convert/asPDF.js",