Skip to content

Commit 0eca757

Browse files
committed
pre-release
1 parent 1b7b106 commit 0eca757

File tree

6 files changed

+32
-97
lines changed

6 files changed

+32
-97
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.DS_Store
12
/vendor/

GOVERNANCE.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

LICENSE.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,25 @@
22

33
This library is an extension for the [CommonMark parser](https://github.com/thephpleague/commonmark) from the PHP League adding abbreviation syntax and rendering to Markdown.
44

5-
This text is written using that syntax enabling extension testing; therefore, it will most likely not render as intended without a rendering extension using this syntax.
5+
> Warning: This text is written using that syntax enabling extension testing; therefore, it will most likely not render as intended without a rendering extension using this syntax.
6+
7+
## Installation
8+
9+
```bash
10+
composer require 8fold/commonmark-abbreviations
11+
```
12+
13+
## Usage
14+
15+
```markdown
16+
[.8fold](Eigtfold)
17+
```
18+
19+
Becomes:
20+
21+
```html
22+
<abbr title="Eightfold">8fold</abbr>
23+
```
624

725
## The syntax
826

SECURITY.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

readme.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
<h1>8fold Abbreviations for CommonMark</h1>
22
<p>This library is an extension for the <a rel="noopener noreferrer" target="_blank" href="https://github.com/thephpleague/commonmark">CommonMark parser</a> from the PHP League adding abbreviation syntax and rendering to Markdown.</p>
3-
<p>This text is written using that syntax enabling extension testing; therefore, it will most likely not render as intended without a rendering extension using this syntax.</p>
3+
<blockquote>
4+
<p>Warning: This text is written using that syntax enabling extension testing; therefore, it will most likely not render as intended without a rendering extension using this syntax.</p>
5+
</blockquote>
6+
<h2>Installation</h2>
7+
<pre><code class="language-bash">composer require 8fold/commonmark-abbreviations
8+
</code></pre>
9+
<h2>Usage</h2>
10+
<pre><code class="language-markdown">[.8fold](Eigtfold)
11+
</code></pre>
12+
<p>Becomes:</p>
13+
<pre><code class="language-html">&lt;abbr title=&quot;Eightfold&quot;&gt;8fold&lt;/abbr&gt;
14+
</code></pre>
415
<h2>The syntax</h2>
516
<p>Inspired by the link syntax - <code>[]()</code> - and the footnote syntax in the extension from MultiMarkdown - <code>[^]</code>.</p>
617
<p>The syntax is a square bracket followed by a period or dot: <code>[.]()</code>.</p>

0 commit comments

Comments
 (0)