The article directories
- One, foreword
- Two, simple application
- Advanced applications
-
- 1. Theme support
- 2. Code style support
- Fourth, problem solving
-
- 1. Wechat external chain problem
- 2. Quote line breaks inside
- 3. Code indentation problem
- 4. The problem of article catalogue confusion
One, foreword
Recently, I set up a wechat official account and wanted to transfer the articles of my blog, but since the wechat official account does not support Markdown format, and I cannot leave Markdown anymore, I basically use Markdown to write my blog these days, so I searched the Internet for a lot of ready-made conversion software, many of which are not ideal. Either because of typography, or because of the lack of support for LaTex mathematical formulas, or because of the lack of support for some of Markdown’s extensions, such as UML flowcharts. Weekend at home for this thing toss and toss for an afternoon, finally found a relatively good conversion tool: www.mdnice.com/
Two, simple application
- Just copy and paste the Markdown text from your blog and click on the top right
Copy to the public account
, can be converted into a public number to support the format;
Advanced applications
1. Theme support
- You can customize your markdown theme, mainly some CSS syntax;
- Customize font sizes, colors, references, images, hyperlinks, and more;
2. Code style support
- You can directly choose your favorite code style, including some popular styles: VS2015, VSCode, Github, momokai, etc.
Fourth, problem solving
- Of course, there are still a lot of problems in the details, but as programmers, finding problems and solving problems is the thing we are most willing to do, so as to constantly improve their technical strength! After all, doing things well and perfectly is also a great sense of achievement!
1. Wechat external chain problem
- Since wechat public accounts do not support external links, so this tool provides a
format
The menu barWechat external chain transfer footnote
All links will be displayed in the [Resources] column at the end of the article;
2. Quote line breaks inside
- Because of the markdown parser, this tool has a different line break than CSDN, which supports inline line breaks (just press enter), but CSDN does not, so the result looks like this:
- To support inline line breaks, we can use
<br>
Sigma, and then we have sigma 
The first two Spaces before subsection; The effect is as follows:
3. Code indentation problem
- The default TAB of CSDN is 4 Spaces indent, but this tool will copy and paste it to 1 space, which will make the code very ugly, so remember to make sure that all tabs are converted to Spaces as you want, so as not to cause inconsistency between platforms;
- Indent is still very important for code cleanliness freaks!!
4. The problem of article catalogue confusion
- After adding the first level directory, using [TOC] will not generate the correct table of contents, so don’t use it and put images instead.