Re: [racket-users] How to create a url-based image reference through Scribble

2018-01-02 Thread Matthew Flatt
You'll have to drop down to HTML, more or less, by using `alt-tag` and
`attributes`:

 @(require scribble/core
   scribble/html-properties)
 @elem[#:style (style #f
  (list (alt-tag "img")
(attributes (list (cons 'src "http://foo.gif";)
  (cons 'alt "bar")]

At Tue, 2 Jan 2018 14:19:22 -0800 (PST), Kathi Fisler wrote:
> I'm using Scribble and trying to end up with
> 
> http://foo.gif"; alt="bar">
> 
> If I call (image "http://foo.gif"; "bar"), I get an error as Scribble tries 
> to treat the url as a path.
> 
> How can I use a URL for the src attribute?
> 
> thanks,
> Kathi

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] How to create a url-based image reference through Scribble

2018-01-02 Thread Kathi Fisler
I'm using Scribble and trying to end up with

http://foo.gif"; alt="bar">

If I call (image "http://foo.gif"; "bar"), I get an error as Scribble tries 
to treat the url as a path.

How can I use a URL for the src attribute?

thanks,
Kathi

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.