From faa84f986d508100f9d0eafca782d7c96cc186a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madeleine=20Sydney=20=C5=9Alaga?= Date: Thu, 5 Mar 2026 11:47:46 -0700 Subject: [PATCH] doc: doerg-temml-worker --- doerg/doerg-temml-worker/README.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doerg/doerg-temml-worker/README.org b/doerg/doerg-temml-worker/README.org index c2d5bd4..1789a11 100644 --- a/doerg/doerg-temml-worker/README.org +++ b/doerg/doerg-temml-worker/README.org @@ -1 +1,12 @@ #+title: doerg-temml-worker + +This is a tiny Node script that is used by doerg. For each CBOR-encoded value on stdin (a "command"), a response value is spit to stdout. + +Currently, the following commands are supported: +- Any string: Return the Temml-rendered MathML code as a string (inline). +- An array with a single string element: Return the Temml-rendered MathML code as a string (display). +If something goes wrong, either of these commands may return an object of form +#+begin_src json + {"type": "error" + ,"error": «error object»} +#+end_src