gitbook-plugin-amazon-jp-link

0.0.6 • Public • Published

gitbook-plugin-amazon-jp-link

Generate a link for amazon.co.jp.

Installation

Adds the plugin to your book.json, then run gitbook install if you are building your book locally.

{
    "plugins": ["amazon-jp-link"]
}

Usage

Generate Link tag

{% AmazonJpLink "B01N59VNQY", "johndue-22" %}macOS Sierra{% endAmazonJpLink %}

Generate the following html:

<a href="http://www.amazon.co.jp/gp/product/B01N59VNQY/ref=as_li_qf_sp_asin_il?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=B01N59VNQY&amp;linkCode=as2&amp;tag=johndue-22" target="_blank">
  macOS Sierra
</a>
<img src="http://www.assoc-amazon.jp/e/ir?t=johndue-22&amp;l=as2&amp;o=9&amp;a=B01N59VNQY" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

Generate Image tag

{% AmazonJpImage "B01N59VNQY", "johndue-22", "150" %}macOS Sierra{% endAmazonJpImage %}

Generate the following html:

<a href="http://www.amazon.co.jp/gp/product/B01N59VNQY/ref=as_li_qf_sp_asin_il?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=B01N59VNQY&amp;linkCode=as2&amp;tag=johndue-22" target="_blank">
  <img border="0" src="http://ws.assoc-amazon.jp/widgets/q?_encoding=UTF8&amp;ASIN=B01N59VNQY&amp;Format=_SL300_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=johndue-22" width="150" style="float: left; margin: 0 20px 20px 0;" />
</a>
<img src="http://www.assoc-amazon.jp/e/ir?t=johndue-22&amp;l=as2&amp;o=9&amp;a=B01N59VNQY" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

Development

Test for plugin

Test your plugin · GitBook Toolchain Documentation

Readme

Keywords

none

Package Sidebar

Install

npm i gitbook-plugin-amazon-jp-link

Weekly Downloads

7

Version

0.0.6

License

Apache 2

Last publish

Collaborators

  • morizyun