Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoldsteinE opened this issue Oct 13, 2024 · 2 comments
Open

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

GoldsteinE opened this issue Oct 13, 2024 · 2 comments

Comments

@GoldsteinE
Copy link

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.

@GoldsteinE GoldsteinE changed the title Is it possible to attach attribute to a definition list item? Is it possible to attach attributes to a definition list item? Oct 13, 2024
@jgm
Copy link
Owner

jgm commented Oct 16, 2024

This is basically the same as #250, no?

@GoldsteinE
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants