Markdown
Markdown is a relatively simple DSL that defines a simple label to describe the HTML document format. Like what:
- #一级标题to generate HTML
- # #二级标题to generate HTML
- [Link text] [link ID] A link to the [link id]:www.baidu.com description:
[Link text] [URL name] [url name]: http://www.baidu.com
The limitations of Markdown
Using a period of time to find the link tags provided by markdown does not work well with the anchor point problem. That is:[a link][id] and [id]: www.url.com The combination of definitions is not perfect. For example, we may not be aware of the URL description of the current document when writing a document. Fortunately markdown at the beginning of the design, in fact, when explaining the MD document, the interpreter will prioritize the native HTML tags. In this way, the solution to this problem will be done.
Just refer to the official website of Markdown Markdown source code and its web page should be analyzed:
- Http://daringfireball.net/projects/markdown/syntax.text
- Http://daringfireball.net/projects/markdown/syntax
The 13th line of MD Overview The corresponding stroke address is a hard-coded HTML H2 id= ' overview '.
Ref
1. Markdown Syntax Reference: http://wowubuntu.com/markdown/
2. Markdown Problem: http://www.v2ex.com/t/3949
Anchor point handling in Markdown