Advanced Markdown tips
Amet faucibus libero sed tempus pede, ut consectetuer pede. Molestie fusce, cras lobortis ante eros ultrices nulla nullam, velit amet, etiam atque. Sodales cras lectus aliquam lacus ut. Rutrum iaculis semper vulputate aenean curabitur, dui elit rerum natoque mus dapibus id, ut etiam auctor maecenas turpis, pellentesque volutpat cras dui eget lorem.
Lorem ipsum dolor sit amet, varius a, velit rutrum fusce vivamus luctus neque, pretium turpis, scelerisque eros wisi dolor sed enim molestie
Lorem ipsum dolor sit amet, varius a, velit rutrum fusce vivamus luctus neque, pretium turpis, scelerisque eros wisi dolor sed enim molestie
Lorem ipsum dolor sit amet, varius a, velit rutrum fusce vivamus luctus neque, pretium turpis, scelerisque eros wisi dolor sed enim molestie
Lorem ipsum dolor sit amet, varius a, velit rutrum fusce vivamus luctus neque, pretium turpis, scelerisque eros wisi dolor sed enim molestie
Lorem ipsum dolor sit amet, varius a, velit rutrum fusce vivamus luctus neque, pretium turpis, scelerisque eros wisi dolor sed enim molestie
Lorem ipsum dolor sit amet, varius a, velit rutrum fusce vivamus luctus neque, pretium turpis, scelerisque eros wisi dolor sed enim molestie
Lorem ipsum dolor sit amet, varius a, velit rutrum fusce vivamus luctus neque, pretium turpis, scelerisque eros wisi dolor sed enim molestie
- Lorem ipsum dolor sit amet, varius a, velit rutrum fusce vivamus luctus neque, pretium turpis, scelerisque eros wisi dolor sed enim molestie
- dfdfdsf
- dsfs
If you've gotten pretty comfortable with all the basics of writing in Ghost, then you may enjoy some more advanced tips about the types of things you can do with Markdown!
Lorem ipsum dolor sit amet, varius a, velit rutrum fusce vivamus luctus neque, pretium turpis, scelerisque eros wisi dolor sed enim molestie, ac vestibulum. Erat et vivamus in nam risus, tortor nulla id a neque justo ligula. Augue diam et donec, pede non elit pede eu. Leo et veritatis pellentesque, curabitur dolorem sagittis mauris sollicitudin, congue elit pede integer wisi viverra, quis hac lorem vestibulum id quis. Euismod iaculis. Feugiat velit, ante libero sed egestas et rutrum tempus, ut feugiat sed odio et turpis, nibh pharetra pharetra pretium, nascetur eu ultricies pede mauris. Facilisis ullamcorper diam quis sem justo, ut amet quis velit elementum blandit, vulputate orci aenean eget, ac inceptos quis wisi quam eu, integer vitae suspendisse venenatis accumsan. Malesuada sit a nulla dignissim, odio magna, ultricies ut dui aptent, elementum vitae eget. Risus morbi fusce tincidunt libero officia, bibendum dignissim integer leo curabitur, lobortis sit justo, lectus justo.
Special formatting
As well as bold and italics, you can also use some other special formatting in Markdown when the need arises, for example:
strike through- highlight
- *escaped characters*
Writing code blocks
There are two types of code elements which can be inserted in Markdown, the first is inline, and the other is block. Inline code is formatted by wrapping any word or words in back-ticks, like this
. Larger snippets of code can be displayed across multiple lines using triple back ticks:
.my-link {
text-decoration: underline;
}
If you want to get really fancy, you can even add syntax highlighting using Prism.js.
Full bleed images
One neat trick which you can use in Markdown to distinguish between different types of images is to add a #hash
value to the end of the source URL, and then target images containing the hash with special styling. For example:
which is styled with...
img[src$="#full"] {
max-width: 100vw;
}
This creates full-bleed images in the Casper theme, which stretch beyond their usual boundaries right up to the edge of the window. Every theme handles these types of things slightly differently, but it's a great trick to play with if you want to have a variety of image sizes and styles.
Reference lists
The quick brown fox, jumped over the lazy dog.
Another way to insert links in markdown is using reference lists. You might want to use this style of linking to cite reference material in a Wikipedia-style. All of the links are listed at the end of the document, so you can maintain full separation between content and its source or reference.
Creating footnotes
The quick brown fox[1] jumped over the lazy dog[2].
Footnotes are a great way to add additional contextual details when appropriate. Ghost will automatically add footnote content to the very end of your post.
Full HTML
Perhaps the best part of Markdown is that you're never limited to just Markdown. You can write HTML directly in the Ghost editor and it will just work as HTML usually does. No limits! Here's a standard YouTube embed code as an example: