From cac6350bf01bcff824f47eea05b790e65aedea01 Mon Sep 17 00:00:00 2001 From: Edward Cui Date: Thu, 13 Jul 2023 23:56:04 +0800 Subject: [PATCH] Add explanation on how to use `data-hashtags` in README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b9327a..fb55cdf 100644 --- a/README.md +++ b/README.md @@ -141,16 +141,19 @@ Apart from the URL and title, some networks support extra parameters: - add `data-text` to a WhatsApp, Mastodon, Telegram, or Viber button to add custom message text - add `data-via` to a Twitter or Mastodon button to mention a user +- add `data-hashtags` to a Twitter or Facebook button to include hashtags in the shared post. + - Twitter supports multiple hashtags, and you need to specify them with out `#` and seperated with `,`, it shoule be something like this `ai,technologies,aigc`. + - Facebook only supports a single hashtag. If you pass multiple hashtags with `,` seperated, the library will only use the first one. Here are all custom parameters: ```html
- + Pin - + Send