This idea combines the syntax of familiar elements – link references, footnotes, and attribute blocks.
Attribute reference label:
{^ref-label}
Attribute reference definition:
{^ref-label}: .class #id attribute="value"
When using an extension for this syntax, any element that could receive an attribute block could also receive an attribute reference.
For example, headings:
# Heading text {^ref-label}
# Heading text # {^ref-label}
Block elements:
{^ref-label}
Paragraph text
{^ref-label}
> Blockquote
{^ref-label}
- List
- List continued
{^ref-label}
- Sublist
- Sublist continued
Inline elements:
*Emphasis*{^ref-label}
`code span`{^ref-label}
[Link](target){^ref-label}
Arbitrary content surrounded by brackets:
[Any text]{^ref-label}
And potentially other locations as well.