Skip to content

Latest commit

 

History

History
121 lines (86 loc) · 2.97 KB

AbbreviationSpecs.md

File metadata and controls

121 lines (86 loc) · 2.97 KB

Extensions

This section describes the different extensions supported:

Abbreviation

Abbreviation can be declared by using the *[Abbreviation Label]: Abbreviation description

Abbreviation definition will be removed from the original document. Any Abbreviation label found in literals will be replaced by the abbreviation description:

*[HTML]: Hypertext Markup Language

Later in a text we are using HTML and it becomes an abbr tag HTML
.
<p>Later in a text we are using <abbr title="Hypertext Markup Language">HTML</abbr> and it becomes an abbr tag <abbr title="Hypertext Markup Language">HTML</abbr></p>

An abbreviation definition can be indented at most 3 spaces

*[HTML]: Hypertext Markup Language
    *[This]: is not an abbreviation
.
<pre><code>*[This]: is not an abbreviation
</code></pre>

An abbreviation may contain spaces:

*[SUPER HTML]: Super Hypertext Markup Language

This is a SUPER HTML document    
.
<p>This is a <abbr title="Super Hypertext Markup Language">SUPER HTML</abbr> document</p>

Abbreviation may contain any unicode characters:

*[😃 HTML]: Hypertext Markup Language

This is a 😃 HTML document    
.
<p>This is a <abbr title="Hypertext Markup Language">😃 HTML</abbr> document</p>

Abbreviations may be similar:

*[1A]: First
*[1A1]: Second
*[1A2]: Third

We can abbreviate 1A, 1A1 and 1A2!
.
<p>We can abbreviate <abbr title="First">1A</abbr>, <abbr title="Second">1A1</abbr> and <abbr title="Third">1A2</abbr>!</p>

Abbreviations should match whole word only:

*[1A]: First