Attribute references


This idea combines the syntax of familiar elements – link references, footnotes, and attribute blocks.

Attribute reference 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:

Paragraph text
> Blockquote
- List
- List continued
  - Sublist
  - Sublist continued

Inline elements:

`code span`{^ref-label}

Arbitrary content surrounded by brackets:

[Any text]{^ref-label}

And potentially other locations as well.

Info strings elsewhere