That is not at all what I got from your earlier posts, sorry for the confusion.
I’m still a little unclear, however. If you are just sending to Bear, and Bear uses hashtags in the text, why are you using Drafts tags at all? Just type #sander
in the text, that that will end up being a tag in Bear when you send the text over there.
If you want to assign tags in drafts, then the script snippet you posted above will convert tags assigned in Drafts to #hashtags
and create a template tag [[hashTags]]
which can be used in your URL action to send to Bear.