Wechat official account: If you have any questions or suggestions, please leave a message on the official account

Used in this article typesetting tools: Md2All, http://md.aclickall.com

Public number typesetting tool

The public number typesetting and editing tools are really a lot, but the functions are similar, most of them are for rich text typesetting, more are focused on materials, and all kinds of fancy styles, giving a person a dazzling feeling, the content seems to have evolved into a king of fancy.

Markdown and the public account

Markdown’s simple grammar, beloved by writing friends, brings writing back to content rather than fancy styling. However, the official account does not support Markdown, so Markdown Here has been a must-have plugin for Markdown writing friends for quite a long time. However, Markdown Here is not a tool specifically for public accounts, and there are various accusers, common ones are:

  • Newlines fail and the lines are crowded together;
  • Code blocks cannot be displayed properly on platforms such as iPhone and iPad.
  • The style is lost; Wait…

Later, there were many experts who offered various solutions to the problems caused by Markdown Here’s public account transfer, but there was no perfect solution.

For IT professionals, the most troubling problem was the display of code blocks. At that time, the popular solution was to save the screenshots of code blocks as pictures, upload the pictures to the public account, and then add the link to the pictures into Markdown.

However, this is not only complicated to operate, but also unfriendly to readers. The code blocks shown in the images are distorted, the code cannot be copied directly, etc.

People are complaining about the Markdown layout of the official account.

The origin of the Md2All

One such programmer, who was also tortured by the Markdown layout of wechat, spent almost a week studying various existing tools, but failed to find a satisfactory solution.

Because the program ape likes to be serious, so he came up with the idea of writing a public account Markdown typesetting tool, which is now Md2All. Although the development process is also due to the various qiba pit and difficult, but the results are satisfactory, at least the above mentioned problems have been solved.

Preview of Md2All features

Let’s take a screenshot of Md2All

As you can see, the layout is simple and all the functions are clear at a glance.

  • Support for “one-click layout” style template selection, and custom CSS;
  • Support side edit, side preview;
  • Support left and right scrolling linkage;
  • IT friendly, supports more than 80 code topics; (because the author is also an IT person: P);
  • Support for general Markdown syntax and partial extended syntax (e.g., tables, task lists,katexMathematical formulas, footnotes, etc…) , and thehtml,cssStyles are well supported.
  • After preview OK, just need one key “copy” can easily paste to the public account.

Md2All one-click typesetting

Several commonly used typesetting templates are provided in One-click Typesetting, as well as enough notes to make it easy for beginners to customize their styles according to the notes



As you can see on the left side of the image above, I just picked it“Increased spacing”The preview on the right is completely different.

You will also see comments in “green” text, and “red” to indicate that this is the modified position.

On the left is the standard CSS style. If an existing style template doesn’t work for you, go ahead and change it. Just “restore default” if you make a mistake, so don’t worry. Remember to “save” before it works.

The code topic for Md2All

Because I am a programmer myself, I have paid a lot of attention to the highlight part of the code. More than 80 code themes are highlighted. You can see the top right corner of the picture below.

public class MyActivity extends AppCompatActivity {

@Override //override the function

protected void onCreate(@Nullable Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

try {

OkhttpManager.getInstance().setTrustrCertificates(getAssets().open("mycer.cer");

OkHttpClient mOkhttpClient= OkhttpManager.getInstance().build();

} catch (IOException e) {

e.printStackTrace();

}

}

Copy the code



Come again axt256code-themed

public class MyActivity extends AppCompatActivity {

@Override //override the function

protected void onCreate(@Nullable Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

try {

OkhttpManager.getInstance().setTrustrCertificates(getAssets().open("mycer.cer");

OkHttpClient mOkhttpClient= OkhttpManager.getInstance().build();

} catch (IOException e) {

e.printStackTrace();

}

}

Copy the code






If you don’t like more than 80 of them, that’s no problem. You can customize your own code highlighting styles by referring to “Block style” under “One-click Layout”.

Copy the content to the public account

After the preview is OK, just click “Copy” in the picture below to copy the content to the official account with one click:



The effect of going to the public account is as follows:



You can see that the final effect of copying to the public account is the same as the preview effect of Md2All.

Isn’t that easy?

The last

Md2All is constantly improving, more functions are being developed, I hope you pay more attention to, all functions of Md2All are free, I hope you support, if you have questions or suggestions, please leave a message on the public account