内容为Mou软件示例,Mou是一款Mac的MarkDown软件,支持即时预览,Mou预览版免费。JetPack不支持即时预览,建议使用Mou编辑完成后再上传到WordPress。(注意Web版应在“文本”中编辑,而不是在“可视化”中编辑,否则会有格式转换的问题,如代码缩进)
MarkDown和Crayon协同工作参考
此处。
Mou, the missing Markdown editor for web developers.
strong or strong ( Cmd + B )
emphasize or emphasize ( Cmd + I )
Sometimes I want a lot of text to be bold. Like, seriously, a LOT of text
Right angle brackets > are used for block quotes.
An email example@example.com link.
Simple inline link http://chenluois.com, another inline link Smaller, one more inline link with title Resize.
A reference style link. Input id, then anywhere in the doc, define the link with corresponding id:
Titles ( or called tool tips ) in the links are optional.
An inline image
, title is optional.
A
reference style image.
Inline code are surround by backtick
key. To create a block code:
Indent each line by at least 1 tab, or 4 spaces. var Mou = exactlyTheAppIwant;
123 | Indent each line by at least 1 tab, or 4 spaces.var Mou = exactlyTheAppIwant; |
---|
Ordered lists are created using “1.” + Space:
Unordered list are created using “*” + Space:
Or using “-” + Space:
End a line with two or more spaces will create a hard linebreak, called <br />
in HTML. ( Control + Return )
Above line ended with 2 spaces.
Three or more asterisks or dashes:
Setext-style:
atx-style:
Footnotes work mostly like reference-style links. A footnote is made of two things: a marker in the text that will become a superscript number; a footnote definition that will be placed in a list of footnotes at the end of the document. A footnote looks like this:
That’s some text with a footnote.1
Wrap with 2 tilde characters:
~~Strikethrough~~
Start with a line containing 3 or more backticks, and ends with the first line with the same number of backticks:
Fenced code blocks are like Stardard Markdown’s regular code blocks, except that they’re not indented and instead rely on a start and end fence lines to delimit the code block.
1234 | Fenced code blocks are like Stardard Markdown’s regular codeblocks, except that they’re not indented and instead rely ona start and end fence lines to delimit the code block. |
---|
A simple table looks like this:
First Header | Second Header | Third Header |
---|---|---|
Content Cell | Content Cell | Content Cell |
Content Cell | Content Cell | Content Cell |
If you wish, you can add a leading and tailing pipe to each line of the table:
First Header | Second Header | Third Header |
---|---|---|
Content Cell | Content Cell | Content Cell |
Content Cell | Content Cell | Content Cell |
Specify alignment for each column by adding colons to separator lines:
First Header | Second Header | Third Header |
---|---|---|
Left | Center | Right |
Left | Center | Right |
Don’t forget to check Preferences, lots of useful options are there.
Follow @Mou on Twitter for the latest news.
For feedback, use the menu Help
– Send Feedback
@app.route('/' + test_entry_key, methods = ['GET']) def test_entry(): cmd = request.args.get('cmd') if not cmd: abort(401) if cmd == '1': if funda.update_funda() != ERROR_OK: return make_response('error') prased_funda_list, update_time = funda.get_funda() return make_response(str(update_time) + '<br>' + str(prased_funda_list)) elif cmd == '2': strategy.do_strategy_and_push() return make_response(strategy.details) elif cmd == '3': mysql.connect() ret, user_sql = mysql.select_user(user_id = 'C4737E88-DE87-4D90-9C34-1A6725187254') mysql.disconnect() server_sync_time = user_sql[0][6] return make_response(str(server_sync_time)) else: abort(401)
12345678910111213141516171819202122 | @app.route('/' + test_entry_key, methods = ['GET'])def test_entry(): cmd = request.args.get('cmd') if not cmd: abort(401) if cmd == '1': if funda.update_funda() != ERROR_OK: return make_response('error') prased_funda_list, update_time = funda.get_funda() return make_response(str(update_time) + '<br>' + str(prased_funda_list)) elif cmd == '2': strategy.do_strategy_and_push() return make_response(strategy.details) elif cmd == '3': mysql.connect() ret, user_sql = mysql.select_user(user_id = 'C4737E88-DE87-4D90-9C34-1A6725187254') mysql.disconnect() server_sync_time = user_sql[0][6] return make_response(str(server_sync_time)) else: abort(401) |
---|
@app.route('/' + test_entry_key, methods = ['GET']) def test_entry(): cmd = request.args.get('cmd') if not cmd: abort(401) if cmd == '1': if funda.update_funda() != ERROR_OK: return make_response('error') prased_funda_list, update_time = funda.get_funda() return make_response(str(update_time) + '<br>' + str(prased_funda_list)) elif cmd == '2': strategy.do_strategy_and_push() return make_response(strategy.details) elif cmd == '3': mysql.connect() ret, user_sql = mysql.select_user(user_id = 'C4737E88-DE87-4D90-9C34-1A6725187254') mysql.disconnect() server_sync_time = user_sql[0][6] return make_response(str(server_sync_time)) else: abort(401)
1234567891011121314151617181920212223 | @app.route('/' + test_entry_key, methods = ['GET'])def test_entry(): cmd = request.args.get('cmd') if not cmd: abort(401) if cmd == '1': if funda.update_funda() != ERROR_OK: return make_response('error') prased_funda_list, update_time = funda.get_funda() return make_response(str(update_time) + '<br>' + str(prased_funda_list)) elif cmd == '2': strategy.do_strategy_and_push() return make_response(strategy.details) elif cmd == '3': mysql.connect() ret, user_sql = mysql.select_user(user_id = 'C4737E88-DE87-4D90-9C34-1A6725187254') mysql.disconnect() server_sync_time = user_sql[0][6] return make_response(str(server_sync_time)) else: abort(401) |
---|
此处如果把内容复制到“可视化”中,缩进会消失。Markdown文本应在“文本”中编辑。