Hi all,

I’m using Greg Hendershott’s Frog[1] tool for my web site, and since I know I’m 
outputting HTML I sometimes want to be able to tell Frog/Scribble, “Just use 
this HTML tag here.” I’ve looked at the docs on implementing styles[2], and 
came up with this attempt:

> ;; string? -> (string? ... -> element?)
> (define (tag-function tag-name)
>   (lambda content
>     (keyword-apply elem
>                    '(#:style)
>                    (list (style #f (list (alt-tag tag-name))))
>                    content)))

This worked great for inserting EM and STRONG tags:

> @(define em (tag-function "em”))
> ...
> Here’s something @em{really important}!
> ...

What’s got me baffled is that if I try to access H1..H5 tags this way, other 
tags get substituted. For example:

> @(define h3 (tag-function "h3”))
> ...
> @h3{Section 2}

renders as

> <h1>Section 2</h1>


So far it’s just the H* tags I’ve found misbehaving.

So, my plea to Greg & other Scribblers: can you give any insight into where the 
H3 might be getting replaced with an H1?

Thanks,
Jordan

[1] https://github.com/greghendershott/frog
[2] http://docs.racket-lang.org/scribble/extra-style.html

-- 
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.

Reply via email to