Commit Graph

3 Commits

Author SHA1 Message Date
D. Ben Knoble
a48c878927 asymptote: remove display side-effect
When building the documentation, the call to asymptote outputs the pwd
and the checksum; this interrupts the new progress bar mechanism in
recent Racket versions. Silence it by removing the display entirely.

(Perhaps we should provide a function to get the hash or document how it
is computed? The function could also accept a side-channel to
communicate the hash to, such as a box. Modifying it to return multiple
values would be a breaking change.)
2024-11-23 09:02:43 -05:00
D. Ben Knoble
81b2514edd asymptote: simplify string construction
Preserve the exact content of the string while using a simpler
construction. I think ~a (display-style) might be redundant on strings,
but without contracts the input might be non-strings, so keep it.

Even simpler would be (apply ~a #:separator "\n" s strs), but that
changes the hash because it misses the final newline. An uncommitted
version used (string-join (map ~a (cons s strs)) "\n" #:after-last "\n")
for a similar effect.
2024-11-23 09:02:27 -05:00
Georges Dupéron
03bdcc592f Split math-scribble.rkt into dollar.rkt and asymptote.rkt. Added documentation, added possibility to use KaTeX instead of MathJax 2016-08-11 01:23:00 +02:00