markdown-magic.html 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <h3 id="automaticlinks">Automatic Links</h3>
  2. <pre><code>https://ghost.org
  3. </code></pre>
  4. <p><a href="https://ghost.org">https://ghost.org</a></p>
  5. <h3 id="markdownfootnotes">Markdown Footnotes</h3>
  6. <pre><code>The quick brown fox[^1] jumped over the lazy dog[^2].
  7. [^1]: Foxes are red
  8. [^2]: Dogs are usually not red
  9. </code></pre>
  10. <p>The quick brown fox[^1] jumped over the lazy dog[^2].</p>
  11. <h3 id="syntaxhighlighting">Syntax Highlighting</h3>
  12. <pre><code>```language-javascript
  13. [...]
  14. ```
  15. </code></pre>
  16. <p>Combined with <a href="http://prismjs.com/">Prism.js</a> in the Ghost theme:</p>
  17. <pre><code class="language-javascript language-language-javascript">// # Notifications API
  18. // RESTful API for creating notifications
  19. var Promise = require('bluebird'),
  20. _ = require('lodash'),
  21. canThis = require('../permissions').canThis,
  22. errors = require('../errors'),
  23. utils = require('./utils'),
  24. // Holds the persistent notifications
  25. notificationsStore = [],
  26. // Holds the last used id
  27. notificationCounter = 0,
  28. notifications;
  29. </code></pre>