Info strings elsewhere

Related topics

Possible internal info string syntax

The exact use and syntax of info strings should not be specified by Commonmark, but most parsers would probably agree on some common extensions:

  • #id unique identifier, usable as a anchor, i.e. a link target, for instance (not a hash-tag)
  • .class named category, type or class, e.g. for styling or specialized behavior
  • "title", 'title', maybe (title) alternative or additional textual content, e.g. for a table of contents or a tool tip
  • key=value arbitrary parameters or attributes that may only be useful for a certain output format or processor

Other syntax extensions for info strings are less common:

  • @attribute a boolean property that should be activated (true), can also be a semantic category (not a mention)
  • $variable, $value
  • {template}, {{template}}
  • :lang, ((lang)) a BCP47 language code