Back to blog list

MD Test

Pavitra GolchhaPublished on Jan 1, 1970

    tag1tag2

Github Flavored Markdown (GFMD) is based on Markdown Syntax Guide with some overwriting as described at Github Flavored Markdown

Text Writing

It is easy to write in GFMD. Just write simply like text and use the below simple "tagging" to mark the text and you are good to go!

To specify a paragraph, leave 2 spaces at the end of the line

Headings

1# Sample H1
2## Sample H2
3### Sample H3

will produce

Sample H1

Sample H2

Sample H3


Horizontal Rules

Horizontal rule is created using --- on a line by itself.


Coding - Block

1# The Greeter class
2class Greeter
3  def initialize(name)
4    @name = name.capitalize
5  end
6
7  def salute
8    puts "Hello #{@name}!"
9  end
10end
11
12# Create a new object
13g = Greeter.new("world")
14
15# Output "Hello World!"
16g.salute

will produce

1# The Greeter class
2class Greeter
3  def initialize(name)
4    @name = name.capitalize
5  end
6
7  def salute
8    puts "Hello #{@name}!"
9  end
10end
11
12# Create a new object
13g = Greeter.new("world")
14
15# Output "Hello World!"
16g.salute

Note: You can specify the different syntax highlighting based on the coding language eg. ruby, sh (for shell), php, etc
Note: You must leave a blank line before the "```"

Coding - In-line

You can produce inline-code by using only one ` to enclose the code:

1This is some code: `echo something`

will produce

This is some code: echo something


Text Formatting

Bold Text is done using **Bold Text**
Italic Text is done using *Italic Text*


Hyperlinks

1This is [an example](http://example.com/ "Title") inline link.
2[This link](http://example.net/) has no title attribute.

Escape sequence

You can escape using \ eg. \`


Creating list

Adding a - will change it into a list:

1- Item 1
2- Item 2
3- Item 3

will produce


Quoting

You can create a quote using >:

1> This is a quote

will produce

Table and Definition list

These two can only be created via HTML:

1<table>
2  <tr>
3    <th>ID</th><th>Name</th><th>Rank</th>
4  </tr>
5  <tr>
6    <td>1</td><td>Tom Preston-Werner</td><td>Awesome</td>
7  </tr>
8  <tr>
9    <td>2</td><td>Albert Einstein</td><td>Nearly as awesome</td>
10  </tr>
11</table>
12
13<dl>
14  <dt>Lower cost</dt>
15  <dd>The new version of this product costs significantly less than the previous one!</dd>
16  <dt>Easier to use</dt>
17  <dd>We've changed the product so that it's much easier to use!</dd>
18</dl>

will produce

IDNameRank
1Tom Preston-WernerAwesome
2Albert EinsteinNearly as awesome
Lower cost
The new version of this product costs significantly less than the previous one!
Easier to use
We've changed the product so that it's much easier to use!

Alternatively

1ID | Name | Rank
2-- | ---- | ----
31 | Tom Preston-Werner | Awesome
42 | Albert Einstein | Nearly as awesome

will produce

IDNameRank
1Tom Preston-WernerAwesome
2Albert EinsteinNearly as awesome

Adding Image

1![Branching Concepts](http://git-scm.com/figures/18333fig0319-tn.png "Branching Map")

Branching Concepts