Differences from traditional Markdown

Multiple underscores in words

wow_great_stuff
do_this_and_do_that_and_another_thing.

URL autolinking

http://example.com

Strikethrough

Mistaken text.

Fenced code blocks

1
2
3
function test() {
console.log("notice the blank line before this function?");
}

Syntax highlighting

1
2
3
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

Tables

First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
Name Description
Help Display the help window.
Close Closes a window
Name Description
Help Display the help window.
Close Closes a window
Left-Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1

Examples to demostrate the markdown syntax.

INLINE HTML

This is a regular paragraph.





Foo

This is another regular paragraph.

AUTOMATIC ESCAPING FOR SPECIAL CHARACTERS

http://images.google.com/images?num=30&q=larry+bird

©

AT&T

4 < 5

HEADERS

This is an H1

This is an H2

This is an H1

This is an H2

This is an H6

This is an H1

This is an H2

This is an H3

BLOCKQUOTES

Standard format:

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.

Lazy format:

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.

Nested format:

This is the first level of quoting.

This is nested blockquote.

Back to the first level.

Embedded format:

This is a header.

  1. This is the first list item.
  2. This is the second list item.

Here’s some example code:

return shell_exec("echo $input | $markdown_script");

LISTS

Asterisks list:

  • Red
  • Green
  • Blue

Pluses list:

  • Red
  • Green
  • Blue

Hyphens list:

  • Red
  • Green
  • Blue

Ordered list:

  1. Bird
  2. McHale
  3. Parish

Lazy ordered list :

  1. Bird
  2. McHale
  3. Parish

Crazy lazy ordered list:

  1. Bird
  2. McHale
  3. Parish

Manual indent list:

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
    viverra nec, fringilla in, laoreet vitae, risus.
  • Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
    Suspendisse id sem consectetuer libero luctus adipiscing.

Auto indent list:

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
    viverra nec, fringilla in, laoreet vitae, risus.
  • Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
    Suspendisse id sem consectetuer libero luctus adipiscing.

Without blank line:

  • Bird
  • Magic

With blank line:

  • Bird

  • Magic

Multiple paragraphs:

  1. This is a list item with two paragraphs. Lorem ipsum dolor
    sit amet, consectetuer adipiscing elit. Aliquam hendrerit
    mi posuere lectus.

    Vestibulum enim wisi, viverra nec, fringilla in, laoreet
    vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
    sit amet velit.

  2. Suspendisse id sem consectetuer libero luctus adipiscing.

Lazy multiple paragraphs:

  • This is a list item with two paragraphs.

    This is the second paragraph in the list item. You’re
    only required to indent the first line. Lorem ipsum dolor
    sit amet, consectetuer adipiscing elit.

  • Another item in the same list.

Blockquote within a list item:

  • A list item with a blockquote:

    This is a blockquote
    inside a list item.

Code block within a list item:

  • A list item with a code block:

    <code goes here>
    

Unexpected list:

  1. What a great season.

Backslash-escape the period:

1986. What a great season.

CODE BLOCKS

This is a normal paragraph:

This is a code block.

Here is an example of AppleScript:

tell application "Foo"
    beep
end tell

HTML code example:

<div class="footer">
    &copy; 2004 Foo Corporation
</div>

HORIZONTAL RULES

Horizontal rule tag:




LINKS

URL:

This is an example inline link.

This link has no title attribute.

Local resource:

See my About page for details.

Reference-style links:

This is an example reference-style link.
This is an example reference-style link.

Implicit link:

Google

Visit Daring Fireball for more information.

More example:

I get 10 times more traffic from Google than from
Yahoo or MSN.

I get 10 times more traffic from Google than from
Yahoo or MSN.

EMPHASIS

Emphasis:

single asterisks

single underscores

double asterisks

double underscores

In the middle of a word:

unfriggingbelievable

Backslash escape emphasis:

*this text is surrounded by literal asterisks*

CODE

Span of code:

Use the printf() function.

Include backtick character:

There is a literal backtick (`) here.

A single backtick in a code span: `

A backtick-delimited string in a code span: `foo`

Include example HTML tags:

Please don’t use any <blink> tags.

&#8212; is the decimal-encoded equivalent of &mdash;.

IMAGES

Alt text

Alt text

Alt text

AUTOMATIC LINKS

http://example.com/

address@example.com

BACKSLASH ESCAPES

\literal backslash\
`literal backtick`
*literal asterisk*
_literal underscore_
{literal curly braces}
[literal square brackets]
(literal parentheses)
#literal hash mark#
+literal plus sign+
-literal minus sign (hyphen)-
.literal dot.
!literal exclamation mark!

Examples to demostrate the markdown basics.

PARAGRAPHS, HEADERS, BLOCKQUOTES

A First Level Header

A Second Level Header

Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.

The quick brown fox jumped over the lazy
dog’s back.

Header 3

This is a blockquote.

This is the second paragraph in the blockquote.

This is an H2 in a blockquote

PHRASE EMPHASIS

Some of these words are emphasized.
Some of these words are emphasized also.

Use two asterisks for strong emphasis.
Or, if you prefer, use two underscores instead.

LISTS

  • Candy.
  • Gum.
  • Booze.
  • Candy.
  • Gum.
  • Booze.
  • Candy.
  • Gum.
  • Booze.
  1. Red
  2. Green
  3. Blue
  • A list item.

    With multiple paragraphs.

  • Another item in the list.

LINKS

This is an example link.

This is an example link.

I get 10 times more traffic from Google than from
Yahoo or MSN.

I start my morning with a cup of coffee and
The New York Times.

IMAGES

alt text

alt text

CODE

I strongly recommend against using any <blink> tags.

I wish SmartyPants used named entities like &mdash;
instead of decimal-encoded entites like &#8212;.

If you want your page to validate under XHTML 1.0 Strict,
you’ve got to put paragraph tags in your blockquotes:

<blockquote>
    <p>For example.</p>
</blockquote>

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

  • rake new_post[“title”]
  • edit the markdown file
  • git add source/_posts/ ; git commit -a
  • rake generate
  • rake preview (optional), back to edit if necessary
  • rake deploy

Basically following the instructions How to start

It clearly describes the steps in details:

Several notes:

  • Convert your project to a C/C++ project if you want to compile native code. See the section Building application native part from Eclipse (CDT Builder)
  • Import the OpenCV Library and then reference the library in your project
  • Configure NDKROOT and use it in C/C++ Build Command for build and Paths and Symbols for includes
  • Configure OPENCVROOT and use it in Paths and Symbols for includes
  • Change jni/Android.mk and jni/Application.mk to suit your needs

Mac could be better, if it can:

  • Provide a package management system, e.g. homebrew
  • Enhance the terminal, e.g. iTerm2
  • Friendly Bash shell, e.g. Dir Colors, Bash Prompt, especially Bash Completion
  • More powerful commands, the default commands are of less use
  • A configured VIM editor, at lease ‘syntax on’

Well, maybe I’m a little spoiled by Ubuntu development environment :-)

Here I summarized some tips about Octopress:

One drawback:

  • May need to upgrade or downgrade to a specific jekyll version to generate posts correctly, that’s why it is called ‘A blogging framework for hackers’

One convenient tool to write markdown post is Mou. Try it!