#114: Added an `abbr` role to markup abbreviations and acronyms.

This commit is contained in:
Georg Brandl
2009-03-05 09:48:55 +01:00
parent b244dbf9b5
commit 51265dfe3f
9 changed files with 61 additions and 1 deletions

View File

@@ -278,6 +278,16 @@ Other semantic markup
The following roles don't do anything special except formatting the text
in a different style:
.. role:: abbr
An abbreviation. If the role content contains a parenthesized explanation,
it will be treated specially: it will be shown in a tool-tip in HTML, and
output only once in LaTeX.
Example: ``:abbr:`LIFO (last-in, first-out)```.
.. versionadded:: 0.6
.. role:: command
The name of an OS-level command, such as ``rm``.