In writing Scribble docs for a function, I'd like to link to a built-in function that has the same name as a different function that's being documented in the same Scribble file. Normally @racketlink
is usable for this purpose (together with something like prefix-in
to differentiate the two functions in the document namespace), but this doesn't appear to work when the link needs to be within the arguments section of a @defproc
form. For instance:
@defproc[(my-proc [f procedure? b:compose])
any/c]{
A procedure similar to @racketlink[b:compose]{compose}.
}
Note the two usages of b:compose
above. The latter link to b:compose
renders simply as compose
(as expected) but if I try the same code in former instance (in the arguments block), it renders as (racketlink b:compose "compose")
. How does one "escape" the literal treatment of the content within the defproc
arguments block? Does this have anything to do with Scribble's notions of "content" and "pre-content" and the process of "decoding"?