jgm/djot

Is it possible to attach attributes to a definition list item?

GoldsteinE opened this issue · 2 comments

I wasn’t able to do this in live playground neither for terms nor for definitions.

{.red}
: term

  definition

parses as

doc
  definition_list class="red"
    definition_list_item
      term
        str text="term"
      definition
        para
          str text="definition"

and

: term

  {.red}
  definition

parses as

doc
  definition_list
    definition_list_item
      term
        str text="term"
      definition
        para class="red"
          str text="definition"

(note that class is attached to para, not to definition).

Possibly related to #308.

jgm commented

This is basically the same as #250, no?

Yeah, probably. Sorry, I searched for definition, and #250 doesn’t mention it.