Abbreviations can be defined in HTML5 as follows:
<abbr title="Hyper Text Markup Language">HTML</abbr>
There is no abbreviation syntax in the original Markdown spec, however Markdown Extra includes the following syntax:
*[HTML]: Hyper Text Markup Language
and (anywhere) else in the document, the abbreviation can be written in plain text like this:
The HTML specification is maintained by the W3C.
resulting in any instance of ‘HTML’ becoming wrapped in
<abbr> like this:
The <abbr title="Hyper Text Markup Language">HTML</abbr> specification is maintained by the W3C.
Quite an elegant solution if you ask me. The same syntax is also supported in the following flavours/implementations:
- Pandoc (turned off by default)
- Python Markdown
- The latest release of Remarkable also uses this syntax.
Flavours that do not use the Markdown Extra syntax:
- Discount supports
<abbr>, but uses different syntax.
Lunamark does not contain an
GitHub Flavored Markdown supports
<abbr>by raw HTML only.
Sidenote: HTML previously contained a separate
<acronym> element. This element has been made obsolete in HTML5. An acronym is also an abbreviation; the spec recommends the use of
<abbr> for acronyms instead.