diff options
author | bptato <nincsnevem662@gmail.com> | 2024-08-03 01:14:41 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-08-03 01:54:35 +0200 |
commit | 4c64687290c908cd791a058dede9bd4f2a1c7757 (patch) | |
tree | 4e72720aa016320a02d19b4a051b9b9916b714f9 /doc/mailcap.md | |
parent | 270cf870eb84e80f2de1f2be64b682849ca55585 (diff) | |
download | chawan-4c64687290c908cd791a058dede9bd4f2a1c7757.tar.gz |
loader: move back data URL handling
data URIs can get megabytes long; however, you can only stuff so many bytes into the envp. (This was thwarting my efforts to view pandoc- generated standalone HTML in Chawan.) So put `data:' back into the loader process.
Diffstat (limited to 'doc/mailcap.md')
-rw-r--r-- | doc/mailcap.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/mailcap.md b/doc/mailcap.md index 9786b219..fd10b7b5 100644 --- a/doc/mailcap.md +++ b/doc/mailcap.md @@ -123,12 +123,17 @@ audio/*; mpv -; needsterminal video/*; mpv - # Open docx files using LibreOffice Writer. -application/vnd.openxmlformats-officedocument.wordprocessingml.document;lowriter %s +application/vnd.openxmlformats-officedocument.wordprocessingml.document; lowriter %s # (Wow that was ugly.) # Display manpages using pandoc. (Make sure the mime type matches the one # set in your mime.types file for extensions .1, .2, .3, ...) -application/x-troff-man;pandoc - -f man -t html -o -; x-htmloutput +application/x-troff-man; pandoc - -f man -t html -o -; x-htmloutput + +# epub -> HTML using pandoc. (Again, don't forget to adjust mime.types.) +# We set http_proxy to keep it from downloading whatever through http/s. +application/epub+zip; http_proxy=localhost:0 pandoc - -f epub \ +--embed-resources --standalone; x-htmloutput # Following entry will be ignored, as text/html is supported natively by Chawan. text/html; cha -dT text/html -I %{charset}; copiousoutput |