Adding HTML attributes to Scribble `subsubsection`

In a Scribble document, I'm using subsubsection, but don't want numbering - and the line above the title.

If I add style="border: none; padding-top: 0px; margin-top: 1em;" to the generated HTML in the h5 tag, this has the wanted effect.

I've read about styles what I could find in the Scribble documentation and this section seems to be the closest to what I want.

In my Scribble document, I have

@(define (entry-subsection text)
         (list 'unnumbered
               ; (alt-tag "h5")
               (attributes '((style . "border: none; padding-top: 0px; margin-top: 1em;")))))


@entry-subsection{``Technical'' number types}

but the custom style information isn't included in the generated HTML. (The 'unnumbered style is applied, though.) I've tried the code with and without the (alt-tag "h5").

Do you have any suggestions on how to get the custom style information included?

There seems to be a bug in subsubsection. (The above code works with elem.)

I entered a Scribble issue:

Given the described bug, it's currently impossible to add a style attribute to a subsubsection. However, it's possible to go the other way around and add an alt-tag property to an elem/element.

Therefore, my workaround now is:

@(define entry-subsection-style
     (list (alt-tag "h5")
           (attributes '((style . "border: none;
                                   padding-top: 0px;
                                   margin-top: 1em;
                                   font-size: 1.4rem;"))))))

@(define (entry-subsection text)
   (elem #:style entry-subsection-style text)))
1 Like