If you also often read the technical articles of wechat public number, you must have seen the code style below, MAC window style code, quite beautiful, if a line of code is very long, you can also slide left and right. I wanted to do the same while marveling at the typography.

Why Markdown

As we all know, Markdown is the best syntax for technical articles, and the default syntax for Github documentation is Markdown. Markdown grammar is very simple, it only takes a few minutes to master common grammar. Simple labels allow us to finish typesetting without taking our hands off the keyboard, which makes writing very efficient. After we have written our articles, we not only need to publish them on the official account, but also on zhihu, Nuggets and Jianshu platforms. The mainstream writing platforms all support Markdown syntax, which can be described as cross-platform. So for writing, Markdown is the place to go.

Six editors

Article editors on wechat’s public platform do not support Markdown syntax, so they have to find a way to convert Markdown format to the typesetting style supported by the public platform. After an online search, I found six editors that can convert Markdown into a public account format.

  • mdnice mdnice.com/

  • Wechat official account layout editor Lab.lyric. im/wxformat/

  • The public the Markdown editor prod. Zkqiang. Cn/wxeditor/in…

  • Md2All md.aclickall.com/

  • OpenWrite md.openwrite.cn/

  • foxmd foxmd.cn/

All of these editors are good, and the key to judging is whether the result is what you like.

Mdnice is the most recommended item online, but when you open its home page, it’s a list of articles, and you wonder if you’re going through the wrong door and just give up.

Analysis of the public article format

The article of the public account can be opened in wechat, or in the browser, so it is speculated that the essence of the article should be a web page, rather than a small program or wechat private format. We found an official post in Chrome and opened it with developer tools. It was a standard HTML page with the red box class=”rich_media_wrp” as the body content.

Mdnice is highly recommended

Open an article with such a code style and look at the source code, where each tag has an MDnice editor watermark. It must have been edited in MDnice. Open.mdnice.com and take your time.

version

Mdnice comes in three versions, Web (Web editor), browser plug-in, and desktop (local editor), all with writing and typesetting capabilities, as described below. But the desktop version requires purchase of an activation code. I write on Typora and use only the typography of MDNICE, so I just use the Web version.

For the Web version, you need to register your account (free) to see the interface.

Powerful features

The Web version of MDNICE is very feature-rich and fully suitable for everyday use. The most thoughtful is to import Markdown, theme, code theme three functions.

Importing Markdown eliminates the need to open Markdown -> Select all -> copy -> paste. It imports documents in one click and avoids copying errors.

Theme is a very big bright spot, can customize the style of the whole article, there are dozens of themes to choose from, if you feel not satisfied, as long as you know some CSS, you can also customize the theme.

Code topic for code, writing a technical article is probably the most concerned code style, it looks good or not determines the force of the article. Mdnice comes with a nice code theme, and it automatically highlights code, making reading as refreshing as the IDE.

There are many other features of MDNICE that you can explore. May be the best wechat official account Markdown typesetting tool.

1h 10 min