div classes without curly brackets and dot? #3757
-
I am using
Both are OK. Of course, the first solution looks cleaner, and it is identical to Pandoc suggestions. So I would prefer using this syntax; but the Quarto documentation shows the second syntax.
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The syntaxes are equivalent, and the first is simply a shorthand for Pandoc's |
Beta Was this translation helpful? Give feedback.
The syntaxes are equivalent, and the first is simply a shorthand for Pandoc's
Attr
annotations when indicating only classes.Attr
annotations include classes, identifiers, and attributes. We often use the second one ourselves because it is more general: if you want to include classes as well as attributes, then you need to use the curly-bracket-and-dot notation for the classes.