Appreciate, respect and accept it, don't take it for granted

部落格開張Markdown Demo

2014-10-16

Sharing Code Snippets

Example 1

PHP echo-hello.phplink
1
echo '部落格開張';

Example 2

Octopress: Sharing Code Snippets

1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>

Example 3

Octopress: Sharing Code Snippets

``` [language] [title] [url] [link text]
code snippet
```

Discover if a number is primeSource Article
1
2
3
4
5
class Fixnum
def prime?
('1' * self) !~ /^1?$|^(11+?)\1+$/
end
end

Example 4: gist embed

{ % gist 89c858fdf4fd510fd910787a64eb9f04 % }

Quote

Example 1

Octopress: Blockquote

Stay hungry, Stay foolish. -Steve Jobs

A apple a day, keep the doctor away

May I help U?

  1. First
    Line
  2. Two
    Line

Example 2

Flying is learning how to throw yourself at the ground and miss.

Douglas AdamsThe Hichhikers Guide to the Galaxy

List

Example

TODO List

Email

Example

address@example.com

Atx format Header L1

Example

Header L2

Header L3

Header L4

Header L5
Header L6

This is an Setext Format H1

Example

This is an Setext Format H2

Break Line

Example

BreakLine




Link

Example 1: Inline

This is an example inline link.

Example 2: Ref

This is [an example] id reference-style link.


Blog comments powered by Disqus