Replies: 2 comments 3 replies
-
In short, adding attributes is done through ```yaml {data-download="blob"}This format is allowed specifically to provide compatibility when parsing content from other parsers. Paired with Originally, the legacy approach was similar to CodeHilite: |
Beta Was this translation helpful? Give feedback.
-
|
Yes, I have already enabled In other words, are the brace‑free attributes designed just for compatibility with legacy syntax? Is using curly braces for all attributes the more standard and recommended approach? However, most users of mkdocs-material and zensical have already gotten used to writing attributes without curly braces. It would be ideal if there were a class or extension that could automatically convert brace‑free syntax into the braced format. For example, this used to be valid: However, after I added an attribute wrapped in curly braces, it became invalid — either the page renders incorrectly or the feature stops working. (I just tested it: setting But this form works fine: This inconsistent behavior is quite confusing for end users and unnecessarily raises the learning and usage barrier. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Does SuperFences support customizing injected classes and attributes? Or does it allow extending custom attributes?
Like supporting custom attributes without curly braces, for example:
I'm not quite clear about the design philosophy behind attribute injection. Currently, it seems only the built-in attributes
title,hl_lines, andlinenumsare supported.Also, I have another question:Why is the following syntax valid?
But this syntax causes rendering issues?
Beta Was this translation helpful? Give feedback.
All reactions