-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathmarkdown-magic.html
More file actions
40 lines (29 loc) · 1.08 KB
/
markdown-magic.html
File metadata and controls
40 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<h3 id="automaticlinks">Automatic Links</h3>
<pre><code>https://ghost.org
</code></pre>
<p><a href="https://ghost.org">https://ghost.org</a></p>
<h3 id="markdownfootnotes">Markdown Footnotes</h3>
<pre><code>The quick brown fox[^1] jumped over the lazy dog[^2].
[^1]: Foxes are red
[^2]: Dogs are usually not red
</code></pre>
<p>The quick brown fox[^1] jumped over the lazy dog[^2].</p>
<h3 id="syntaxhighlighting">Syntax Highlighting</h3>
<pre><code>```language-javascript
[...]
```
</code></pre>
<p>Combined with <a href="http://prismjs.com/">Prism.js</a> in the Ghost theme:</p>
<pre><code class="language-javascript language-language-javascript">// # Notifications API
// RESTful API for creating notifications
var Promise = require('bluebird'),
_ = require('lodash'),
canThis = require('../permissions').canThis,
errors = require('../errors'),
utils = require('./utils'),
// Holds the persistent notifications
notificationsStore = [],
// Holds the last used id
notificationCounter = 0,
notifications;
</code></pre>