Decklist and card viewer plugin
-
just saying in case you missed it somehow, this is built on nodebb and they have a plugin template here https://github.com/NodeBB/nodebb-plugin-quickstart
-
-
My initial idea was to implement a server side functionality that would filter upon posting and insert HTML card embeds. I got it a rough draft of that working with a filter hook.
The problem was that I couldn't see a way to make it not look weird if you would try to edit a post that had cards embedded. Ideally I would have wanted another hook that would essentially strip away the card embeds when you hit edit, but I found no such hook. Could be it exists. The edit hooks that exist seem to apply once you click save in the editor? I would maybe like to ask about that. Maybe they could add a hook for this.I was also worried that the embedded card markup in the actual post content would look awful if consumed outside of this site via federation. At least the embeds would have to be something that's not annoying to read on the other end, like a normal hyperlink. In that case I suppose the client side script in here could then only take care of inserting the images on hover, which would be a lot simpler and more performant.
