Skip to content

Commit

Permalink
MarkDown, fix table formattingwq
Browse files Browse the repository at this point in the history
  • Loading branch information
vkulpa committed Mar 4, 2013
1 parent d63c301 commit 7cd83b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,13 @@ You can also specify the URL that it links to:

For the Tumblr there are an extra settings, prefixed with :'data-*'
```erb
<%= social_share_button_tag(@post.title, :image => "https://raw.github.com/vkulpa/social-share-button/master/lib/assets/images/sprites/social-share-button/baidu.png", :'data-type' => 'photo') %>
<%= social_share_button_tag(@post.title, :data-source => "https://raw.github.com/vkulpa/social-share-button/master/lib/assets/images/sprites/social-share-button/baidu.png", :'data-type' => 'photo') %>
<%= social_share_button_tag(@post.title, :image => "https://raw.github.com/vkulpa/social-share-button/master/lib/assets/images/sprites/social-share-button/tumbler.png", :'data-type' => 'photo') %>
<%= social_share_button_tag(@post.title, :'data-source' => "https://raw.github.com/vkulpa/social-share-button/master/lib/assets/images/sprites/social-share-button/tumbler.png", :'data-type' => 'photo') %>
```
Those two above calls are identical.
Here's the mapping of attributes depending on you data-type parameter

<pre>
| data-type | standard | custom :"data-*" prefixed |
--------------------------------------------------------------
| link (default) | title | data-title |
Expand All @@ -98,7 +99,7 @@ Here's the mapping of attributes depending on you data-type parameter
| | image | data-source |
| quote | title | data-quote |
| | | data-source |

</pre>


## Demo
Expand Down

0 comments on commit 7cd83b5

Please sign in to comment.