aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-27 17:28:19 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-27 17:40:07 +0100
commitd33978790c89c0a41d717a69e1cb29511ae7cdb0 (patch)
tree921c146dd8134d1a9d57168b2c0ef23c962f7aa9 /doc
parent5a28c56e67d3573855cad4b6d386dfc4d1b5c445 (diff)
downloadchawan-d33978790c89c0a41d717a69e1cb29511ae7cdb0.tar.gz
mailcap: add x-needsstyle extension field
Useful when an x-htmloutput handler needs styling for the HTML output to be formatted correctly (as a sort of pseudo-ua style sheet). ref. https://todo.sr.ht/~bptato/chawan/28
Diffstat (limited to 'doc')
-rw-r--r--doc/mailcap.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/mailcap.md b/doc/mailcap.md
index fd10b7b5..d24f9b06 100644
--- a/doc/mailcap.md
+++ b/doc/mailcap.md
@@ -75,9 +75,11 @@ extension fields are recognized too.
it is ignored.
* The `x-htmloutput` extension field behaves the same as `copiousoutput`,
but makes Chawan interpret the command's output as HTML.
-* `x-ansioutput` makes Chawan pipe the output through the default "text/x-ansi"
- content type handler. This means that you get colors, formatting, etc.
- displayed with ANSI escape sequences.
+* `x-ansioutput` pipes the output through the "text/x-ansi" content type
+ handler, so that ANSI colors, formatting, etc. are displayed correctly.
+* `x-needsstyle` forces CSS to be processed for the specific type, even if
+ styling is disabled in the config. Only useful when combined with
+ `x-htmloutput`.
* `needsterminal` hands over control of the terminal to the command while
it is running. Note: as of now, `needsterminal` does nothing if either
`copiousoutput` or `x-htmloutput` is specified.