Thanks for the feedback so far. Looks like most of you don’t really like the idea of looking for an ordinary sentence to insert the plugin. My thinking was that by doing so, some forum users will discover the plugin accidentally. Specially since you immediately see the plugin in the preview. But as was pointed out, this method of inserting the plugin is not very customizable.
Perhaps, instead of playing the guessing game as to which sentence to capture, I should switch to a good old wordpress style plugin shortcode. Maybe something flexible like
[whoisin] that would also support a couple of custom attributes, for example
[whoisin add-btn-text="I am in!" remove-btn-text="Remove me" height="5rem"]. I think this way it will be easily customizable for each different use case.
@Schamper I think I saw you had used wordpress style shortcode for some of you plugins. Is this a recommened format for inserting plugins into posts or does NodeBB has it's own shortcode style? Any other suggestions about the shorcode format, or what attributes should be customizable?
Is there source available yet?
Of course, here is the source code
Thanks again for trying it out. This plugin is still very tiny and can be improved easily. So please keep the suggestions coming!