Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the introduction and skills of markdown?

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you the introduction and skills of markdown, the content is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.

1. Getting started with markdown

Getting started with markdown is actually very simple. I used to like to record things with rich text editors, and I always found it convenient to change the format like Word. However, there is a fatal problem with the articles or notes written in this way, that is, when pasting the notes to another platform or software, it is easy to have problems such as format distortion, font asymmetry and so on.

Instead, markdown files are supported on many platforms (CSDN, short books, blog parks, and so on) and can be used on different platforms like Java bytecode files. In less than an hour, you can comfortably step into the circle of md, just like using a mechanical keyboard, and you don't want to use a rich text editor anymore.

There are so many md grammar introductions on the Internet that it is meaningless to read the whole article. So a better way is to directly start with the actual combat, there is a good online editing site (read the original text can jump: https://www.zybuluo.com/mdeditor), the home page provides the vast majority of md format writing, as long as a little modification will be able to make their own documents MDD. In addition, Youdao cloud notes, CSDN, Xianshu or Mark Flying Elephant can all be brought directly, while writing while familiar with grammar, it is easy to get started in an hour.

2. Some tips for using markdown 2.1 how to define intra-page jumps:

Use the jumped text where it is jumped, and then use it like this at the anchor point: [text to highlight] (# name of the anchor point)

Example:

Jump here.

I'm going to jump to title 1.

The span tag can be changed into div, and the effect is only whether the following text will wrap.

The official Wechat account does not support this jump (welcome to read the original article to try the effect)

2.2 how to generate a directory tree:

Markdown can automatically generate a directory tree by writing "[TOC]" (on a separate line) where you need to insert the directory tree, which automatically generates the directory tree, and the directory tree can click to jump to the corresponding title

As of May, 1919, the official account of Wechat and a certain book still did not support toc grammar.

2.3 how to put the md file in the official account of Wechat:

The author has tried a lot of methods on the Internet, either outdated or disorganized. So at present, the author's choice of the method is to open the md file with Youdao cloud notes, and then everywhere into the html file, and then copy the source code of html to the editor of the official account of Wechat (if there is no code, you can directly copy the rich text; if there is a code, the author gives a modern code line to disappear, you need to assign the html source code). Finally, check the typesetting of Wechat official account and modify it slightly.

2.4 display of project directory file structure

Use mddir to generate the project directory structure (view the original text can be redirected)

The effect is as follows:

| |-- Desktop |-- .DS _ Store |-- .gitignore |-- README.md |-- index.html |-- ai |-- always | |-- .DS _ Store | |-- swoole_thread.jpg |-- backend |-- .DS _ Store |-- jetbrains.jpg |-- swoole.jpeg |-- swoole_run.png |

Super simple and practical, the official website states:

To install: npm install mddir-gTo generate markdown for current directory: mddirTo generate for any absolute path: mddir / absolute/pathTo generate for a relative path: mddir ~ / Documents/whatever.The md file gets generated in your working directory.Currently ignores node_modules, and .git folders. The above is the introduction and skills of markdown. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report