Anchor point handling in Markdown

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.