I notice that there are a number of people asking basic Markdown formatting questions. And in order to go find Markdown cheatsheets you have to leave the "safety" of Zeronet. So I thought I would post a Markdown Cheatsheet here on Zeronet for anyone to bookmark or follow.
You can also use an underline-style for H1 and H2 tags:
Strong, Strikes, and Emphasis
- Emphasis (or italics) can be accomplished with
_underscores_ surrounding the word or phrase you wish to emphasis.
- Strong (or bold) can be accomplished with double
__undercores__ surrounding the word or phrase you wish to make strong.
- Strikethrough uses two tildes
~~strike~~ surrounding the word or phrase you wish to
have a strike through.
1. First ordered list item
2. Another item
* Unordered sub-list
1. Remember that numbers don't actually matter, they will render on the front end as a correct ordered list
1. Ordered sub-list
4. Another item
Note that the two sub-list items above have two leading white spaces (spacebar) before the astericks or the numeral.
Also note that unordered lists can use either astericks or minuses or pluses. All three will work.
There are really two ways to handle links in Markdown. The first way deals with inline-style links.
[This is the inline-style link text](https://www.domain.com)
[This is the inline-style link text WITH title](https://www.domain.com "Title of Link")
Or you could use a reference text or number that will provide the linked url at the bottom of the document.
[This is the inline-style link with a reference to 'footer'](arbitrary case-insensitive reference text)
- - -
Then later in the document you can provide the reference links like:
[arbitrary case-insensitive reference text]: https://domain.com
In Markdown there is a simple method of adding images to a document.
Note that you can also use a similar reference style link described in the LINKS section.
IMPORTANT : When it comes to linking items in Zeronet there is a recommended method of linking your images.
By placing the image in your data folder of your Zeronet folder you don't have to worry about outside image hosting solutions to work.
The important thing to remember about Markdown and sharing code snippets is the back-tick key
Inline `code` has `back-ticks around` the items that will be highlighted.
back-ticks around the items that will be highlighted.
If you use a triple back-tick it will turn on the syntax highlighting and will continue to highlight everything until you use another triple back-tick to turn it off. This is how you can display blocks of code.
This will highlight multiple lines of code.
And make it easier to share code
If during your initial triple back-tick you also write the name if the language like
var s = "You can also have it format the code by declaring which language you are using.
Blockquotes are handled by starting each line with a greater than element or *closing tag)
> Blockquotes are simple ways to draw attention to text
> That can stand out for your posts.
And it looks like this
When you highlight interesting bits
from your blog post for all to pay attention.
There are other aspects of Markdown that some sites (Github and other flavors of Markdown) use that are not in the traditional Markdown specs. I haven't test that functionality currently, but if people want I can do a followup to talk about tables, horizontal rules, line breaks, limited embeds, and how to do other neat tricks here on Zeronet.