At Mon, 2 Dec 2019 22:55:34 +0000, Reuben Thomas wrote: > On Mon, 2 Dec 2019 at 22:47, Matthew Flatt <mfl...@cs.utah.edu> wrote: > > > Does this get closer? > > > > @(define foo-style (make-style "foo" (list (body-id "div")))) > > > > Thanks for the suggestion. It doesn't seem to make any difference. I added > scribble/html-properties to my requires, of course, then since I couldn't > tell which version of (define foo) you meant me to use it with, I tried it > with both. With the definition using make-nested-flow, the output still has > a blockquote element. With the definition using make-part, the output still > doesn't have any element wrapping it, or any mention of class "foo".
Ah, it looks like `alt-tag` is the one that works, instead of `body-id`. (I'll fix the docs.) Since I actually tried it this time, here's a modified version of your example. ---------------------------------------- #lang scribble/base @(require scribble/core scribble/decode scribble/html-properties) @(define foo-style (make-style "foo" (list (alt-tag "div")))) @(define (foo . content) (make-nested-flow foo-style (decode-flow content))) @foo{Test. @para[#:style "bar"]{Bar.}} -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/5de59902.1c69fb81.6072d.28acSMTPIN_ADDED_MISSING%40gmr-mx.google.com.