Anchor tag with target attribute - Markdown

Published on Jul 19, 2016 & tagged in Jekyll, Markdown

In Markdown, there is simple way to write anchor tag.

[Your Text](http://yourdomain.com)

The above line will generate <a href="http://yourdomain.com">Your Text</a> anchor tag.

There is a target attribute for anchor tag and it can control the behaviour of our link.

<a href="http://yourdomain.com" target="_blank">Your Text</a>

When we click on this link, it will open the URL in a new browser tab.

In Markdown also, we can add this target attribute.

This is [My Home Page](http://sarathlal.com){:target="_blank"}

Do you need any help on Jekyll & Markdown?

I'm happy to help you. Just fill the form on contact page & I will get back to you within few hours.

Recent Posts

  1. The add_image_size() function - WordPress best practices
  2. Remove page title using filter - WordPress
  3. Comment out code in Liquid Template Language
  4. Remove Plugin Stylesheets and Scripts - WordPress
  5. Get blog page URL - WordPress