Markdown syntax examples
Ref
- http://staff.hatenablog.com/entry/2012/09/19/153219
- http://github.github.com/github-flavored-markdown/
Header
H1
H2
H3
H4
H5
H6
Paragraph
first paragraph.
second paragraph.
third
paragraph.
Code
Multi line
var s = "Hello World";
Console.WriteLine(s);
Inline
this is code
.
contains backtick (`) code
Lists
Unorderd list
- a
- b
- b-1
- b-1-1
- b-2
- b-1
- c
Ordered list
- a
- b
- c
Blockquotes
quoted paragraph.
other paragraph ...
Horizontal Rules
Links
Manual
Automatic
Follows
Emphasis
Emphasis
Strong
Images
Escape
*No emphasis*
- No list
Syntax highlighting
require 'redcarpet' markdown = Redcarpet.new("Hello World!") puts markdwon.to_html
table
Left align | Right align | Center align |
---|---|---|
This | This | This |
column | column | column |
will | will | will |
be | be | be |
left | right | center |
aligned | aligned | aligned |