Autolinker.js
Autolinker.js copied to clipboard
VK (VKontakte) support
Hashtags:
#example
→ https://vk.com/feed?section=search&q=%23example (global search)
#example@apiclub
→ https://vk.com/apiclub/example (search in a specific community or in a specific user profile with screen name (not ID))
#блаблабла@apiclub
→ https://vk.com/wall-1?q=%23блаблабла (search for а non latin hashtag in a specific community (only with community ID, but ID with -
sign))
#блаблабла@apiclub
→ https://vk.com/wall1?q=%23блаблабла (search for а non latin hashtag in a specific user profile (only with profile ID))
Mentions:
[id1|Pavel Durov]
, *id1 (Pavel Durov)
, @id1 (Pavel Durov)
→ Pavel Durov
[durov|Durov Pavel]
, *durov (Durov Pavel)
, @durov (Durov Pavel)
→ Durov Pavel
Same scheme ([club...|...]
, [public...|...]
, [event...|...]
) is used for communities. Also, only [id1|Pavel Durov]
, [id1|Pavel Durov]
and [club1|ВКонтакте API]
templates are used in VK API (and it is necessary to implement them).