[racket] Scribble: Different output for LaTeX and HTML backends

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Wed Dec 8 08:06:45 EST 2010

2010/12/7 Matthias Felleisen <matthias at ccs.neu.edu>:
> Define a Scribble function like this:
>
> (define (exact . items)
>  (make-element (make-style "identity" '(exact-chars))
>                items))
> (provide exact)

It (finally) dawned on me that I have two problems.
I thougt this would display a YouTube player on the HTML page:

@exact|{<iframe title="YouTube video player" class="youtube-player"
type="text/html" width="480" height="390"
src="http://www.youtube.com/embed/J3WIPS3Uh_A?rel=0"
frameborder="0"></iframe>}|

But since the element passes through the renderer, I get the above
string displayed as is on the HTML page.
Is there a loop hole that allows one to pass HTML untouched through
the renderer?

/Jens Axel


Posted on the users mailing list.