markdown hyperlink plus target= ' _blank '

Source: Internet
Author: User

Markdown supports two forms of link syntax: inline and two forms of reference .

Either way, the link text is marked with [square brackets] .

To create a inline link, just follow the parentheses around the square brackets and insert the URL link.

If you also want to add the title text of the link, as long as the URL behind, use double quotation marks to wrap the title text, for example:

This was [an example] (http://example.com/"Title") inline link.
will produce

<p>this is <a href= "http://example.com/" title= "title" >an example</a> inline link.</p>

The reference link is followed by another square bracket after the parenthesis of the linked text, and the second square bracket is filled with a tag that identifies the link:

This was [an example][id] reference-style link.
then, at any point in the file, you can define the linked content of this tag:

[ID]: http://example.com/  "Optional Title Here"

and we open the production of hyperlinks, which are opened by default in this window, in order to have a better reading experience, we often want in a new window

Open hyperlinks and do not want to affect reading this article. Markdown should not support this syntax at the moment,

But it can be solved in other ways, such as jquery, in the appropriate place with the following code:

<script type= "Text/javascript" >$ (document). Ready (function () {    //= Hyperlink plus target= ' _blank ' property $ (' a[href^= ') http "]"). each (function () {$ (this). attr (' target ', ' _blank ');}); </script>


Itmyhome



markdown hyperlink plus target= ' _blank '

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.