Version 0.28 section 4.5 states (emphasis mine)
The first word of the info string is typically used to specify the language of the code sample, and rendered in the
class
attribute of thecode
tag. However, this spec does not mandate any particular treatment of the info string.
But example 111 states
An info string can be provided after the opening code fence. Opening and closing spaces will be stripped, and the first word, prefixed with
language-
, is used as the value for theclass
attribute of thecode
element within the enclosingpre
element.
The example should mention that the behavior is merely one common behavior. It would be nice if the text mentioned the suggested or typical language-
prefix as well. I suggest the following wording:
and rendered in the
class
attribute of thecode
tag by prefixing it withlanguage-
.