My Android advanced tutorial ------) about using the CSDN-markdown editor to write a blog
UsageMarkDown EditorCause
In fact, it was supported some time ago.MarkDown EditorI wrote a blog, just because I was in touchMarkDownSo all previous blogs use the defaultHTML editorTo write a blog.
Recently, because the company requires that all documents be usedMarkDown EditorTo write, so start learningMarkDown syntaxTo write documents and blogs!
Refer to the followingMarkDown syntaxYou can useMarkDown EditorCome:
Organize knowledge, study notes, release diaries, essays, what you see and want to write release technical documents (Code support) write and publish academic papers (LaTeX formula Support)
What is Markdown?
Markdown is a plain text markup language that is easy to remember and write. You can use these markup symbols to generate expressive documents at minimal input costs: for example, the document you are reading. It uses simple symbols to mark different titles and separate different paragraphs,BoldOrItalicsSome text, even better, can
1. create a to-do Todo list [] which supports exporting documents in PDF Format [] Improving the Cmd rendering algorithm, using Partial Rendering Technology to Improve rendering efficiency [x] added the Todo list function [x] to fix LaTex formula rendering problems [x] added the LaTex formula numbering function 2. write a formula for conservation of energy [^ LaTeX]
E = mc2
3. highlight a piece of code [^ code]
@requires_authorizationclass SomeClass: passif __name__ == '__main__': # A comment print 'hello world'
4. Efficient Flowchart Created with Rapha? L 2.1.0 Start Your Operation Yes or No? End Yes No 5. efficiently draw sequence diagrams
Alice->Bob: Hello Bob, how are you?Note right of Bob: Bob thinksBob-->Alice: I am good thanks!
6. Draw a table
Project |
Price |
Quantity |
Computer |
$1600 |
5 |
Mobile phone |
$12 |
12 |
Pipelines |
$1 |
234 |
7. More detailed syntax description
For more detailed syntax descriptions, refer to the Cmd Markdown concise syntax manual we have prepared. For more advanced users, refer to the Cmd Markdown advanced syntax manual to learn more advanced functions.
All in all, unlike otherWYSIWYGEditor: you only need to use the keyboard to focus on writing text content, you can generate a print-level typographical format, saving the trouble of switching back and forth between the keyboard and toolbar, and adjusting the content and format.Markdown balances the smooth writing and print-level reading experience.At present, it has become the world's largest technology sharing website GitHub and technical Q & A website StackOverFlow in the royal writing format.
How to Use
MarkDown
The following describes how to useMarkDown syntaxTo write a blog
Step 1: ClickBlog writingButton to go to the interface shown in
Step 2: ClickSwitch to the MarkDown EditorButton to enterCSDN-markdownEditor interface.
Step 3: Read the default CSDN introduction to MarkDown. This introduction is shown first. The left side is the MarkDown plain text mark, and the right side is the real-time preview. Step 4: After learning about MarkDown, start using MarkDown to write what you want to write. Welcome to blog with Markdown Editor
This Markdown editor uses StackEdit to modify it. using it to write a blog will bring a new experience:
Markdown and extended Markdown concise syntax
Code block highlighting
Image links and image uploads
LaTexMathematical formula
UML sequence diagram and Flowchart
Write a blog offline
Import and export a Markdown File
Rich shortcut keys Bold shortcut key
Ctrl + B
Italics
Ctrl + I
Reference
Ctrl + Q
Insert Link
Ctrl + L
Insert Code
Ctrl + K
Insert Image
Ctrl + G
Raise title
Ctrl + H
Ordered list
Ctrl + O
Unordered list
Ctrl + U
Horizontal line
Ctrl + R
Undo
Ctrl + Z
Redo
Ctrl + Y
Markdown and Expansion
Markdown is a lightweight markup language that allows people to write documents in easy-to-read and easy-to-write plain text formats and then convert them into HTML pages with rich formats. -- [Wikipedia]
Use a simple symbol to mark different headersBoldOrItalicsCreate a link. For more information about the syntax, see help ?.
This Editor supportsMarkdown Extra. For details, refer to Github.
Table
Markdown ExtraTable Syntax:
Project |
Price |
Computer |
$1600 |
Phone |
$12 |
Pipe |
$1 |
You can use colons to define alignment:
Project |
Price |
Quantity |
Computer |
$1600 |
5 |
Phone |
12 yuan |
12 |
Pipe |
1 RMB |
234 |
Definition list
Markdown ExtraDefinition list Syntax: Project 1 Project 2 Definition A definition B project 3 definition C
Define D
Define D content
Code block
The code block syntax follows the standard markdown code, for example:
@requires_authorizationdef somefunc(param1='', param2=0): '''A docstring''' if param1 > param2: # interesting print 'Greater' return (param2 - param1 + 1) or Noneclass SomeClass: pass>>> message = '''interpreter... prompt'''
Footer
Generate a footer. 1.
Directory
Use[TOC]
To generate a directory:
Mathematical formula
Use MathJax for renderingLaTexFor more information about mathematical formulas, see math.stackexchange.com.
The formula in the row. The mathematical formula is: Gamma (n) = (n? 1 )!? Nε n . Block level formula:
X =? B± b2? 4ac ??????? √ 2a
For more LaTex syntax, refer to here.
UML diagram:
You can render sequence diagrams:
Created with Rapha? L 2.1.0 Zhang San Zhang San Li Si Li Si Hey, son, do you want to write a blog? Li Siwei paused and said: I am so busy that I have time to write.
Or flowchart:
Created with Rapha? L 2.1.0 Start My operations OK? End Yes No About
Sequence DiagramSyntax. For more information, see
FlowchartSyntax, refer to Here. Write a blog offline
Even if you do not have a network, you can use this editor to write a blog offline (enter write.blog.csdn.net/mdeditordirectly in a browser you have used.Markdown EditorUse the browser to offline store the content locally.
When a user writes a blog, the content is stored in the browser cache in real time. If the user closes the browser or other exceptions, the content will not be lost. When the user opens the browser again, it will display the Last edited content that has not been published by the user.
After a blog is published, the local cache will be deleted.
You can save the blog you are writing to the draft box on the server. The content will not be lost even if you change the browser or clear the cache.
Note:Although browser storage is reliable most of the time, for your data security,Be sure to post or save it to the server draft box in time.
Currently, this editor provides the most complete support for Chrome browsers. We recommend that you use a newer version of Chrome. IE9 or earlier does not support IE9, and 11 have the following problems
Internet Explorer 9 does not support File Import and Export. IE10 does not support drag-and-drop File Import.