Skip to content

Commit

Permalink
Add Instagram filter
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jun 9, 2016
1 parent 3b60a09 commit afa289b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/filters/index.js
@@ -1,5 +1,7 @@
import twitter from './twitter';
import instagram from './instagram';

export default {
twitter
twitter,
instagram
};
8 changes: 8 additions & 0 deletions src/filters/instagram.js
@@ -0,0 +1,8 @@
export default {
hashtags: {
filter: tag => `<a target="_blank" href="https://www.instagram.com/explore/tags/${tag.replace('#', '')}/">${tag}</a>`
},
mentions: {
filter: user => `<a target="_blank" href="https://www.instagram.com/${user.replace('@', '')}/">${user}</a>`
}
};

0 comments on commit afa289b

Please sign in to comment.