In this section, we present the syntax of Markdown.
A paragraph is one or more consecutive lines of text. To create a new paragraph, separate it from the previous paragraph with a blank line. When converting to HTML, the text of the paragraph is wrapped in a p tag.
This is a paragraph in Markdown format.
This line will be merged with the previous one.
This is the start of a new paragraph.
This is a paragraph in Markdown format. This line will be merged with the previous one.
This is the start of a new paragraph.
You can specify headings in one of two ways; I'll cover just one of them. To specify that a line is a heading, start it with a hash mark (#). A heading line can start with 1 to 6 hash marks, corresponding to HTML's h1, h2, h3, h4, h5, and h6 tags.
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
greater than(>) symbol. Blockquotes can be nested and can contain other markdown elements.
> # This is a heading inside of a blockquote.
>
> Here's the text of paragraph 1 in the blockquote
>
> > Here's a quote within a quote
>
> Here's the text of paragraph 2 in the blockquote
This is a heading inside of a blockquote.
Here's the text of paragraph 1 in the blockquote
Here's a quote within a quote
Here's the text of paragraph 2 in the blockquote
To emphasize a phrase, surround it with asterisks or underscores. If you strongly want to emphasize something, then double the symbols. In HTML, the former will be translated to an em tag; the latter as a strong tag. By convention, em tags appear in *italics* while strong tags appear in bold.
I *really* want you to be there
No, I _really_ do.
Listen, I **really** want you to be there
I'm __not__ kidding.
I really want you to be there
No, I really do.
Listen, I really want you to be there
I'm not kidding.
You can create two types of lists (just like in HTML). For an unordered list, start each line with an asterisk (*), a plus (+), or a dash (-), followed by a space and then the content of the list item. For ordered lists, start each line with a number followed by a period and a space. It doesn't matter what numbers you use, Markdown will convert it to an HTML ordered list and the browser will take care of actually numbering the list.
* This is a list
* Items can have
multiple paragraphs
if you need them
just indent by four spaces
and have blank lines between items
* Here's the end of the list
Here's the start of a new paragraph
1. Here's an ordered list that follows
2. with multiple items
3. as many as you need
This is a list
Items can have
multiple paragraphs if you need them just indent by four spaces
and have blank lines between items
Here's the start of a new paragraph
You can embed one list inside another, as many levels deep as you need (within reason). Just prefix each level with four spaces in front of the list marker. Level 1 is a normal list. Level 2 lists have four spaces at the start of their lines. Level 3 lists have eight spaces at the start of their lines, etc.
* This is a list
* This is an embedded list
1. that is indicated by adding
2. four spaces in front of the list marker
* Go as deep as you need.
* This is the second item of the outer list
* And this is the third item
codeelements either in-line or in a stand-alone block. In-line code is indicated by surrounding the word or phrase with backticks. Stand-alone code blocks are indicated by four spaces at the start of a line.
Be sure to call the `init()` method before you call `doMyWorkForMe()`.
Also be sure to review this code for me.
def check(dir: Path) = {
if (!exists(dir)) {
error(s"Directory: <$dir> does not exist.")
}
}
Thanks!
Be sure to call the init()
method before you call doMyWorkForMe()
.
Also be sure to review this code for me.
def check(dir: Path) = {
if (!exists(dir)) {
error(s"Directory: <$dir> does not exist.")
}
}
Thanks!
Check out [GitUp](http://gitup.co) for a cool way to view git repos.
Check out [GitUp](http://gitup.co "It's cool!") for a cool way to view git repos.
Check out GitUp for a cool way to view git repos.
Check out GitUp for a cool way to view git repos.
Images have a similar syntax to links.
![alt text](href "title")
You start with an exclamation point (!) followed by a textual description of the image (for screen readers) and then the link to the image and the link's title. The textual description goes in square brackets, the link and link title go in parentheses.
![Kitties!](https://github.com/kenbod/markdown_github_01/blob/master/resources/kitty.jpg "So cute!")
That's it for our review of Markdown. There are plenty of other tutorials on the web if you want to learn more.
Next up, head to the material on GitHub or head back to the Table of Contents.