I recently discovered MDX, which allows you embed dynamic components in markdown using JSX.
I’m wondering how difficult it would be to do something similar in Discourse posts.
I want users to be able to start games in the forum by embedding shortcode-like snippets in posts:
Here's today's game. Let's see who can get the best score.
[game type="whatever" prop2="something" expires="midnight"]
The tag would be replaced with a dynamic JavaScript game. Scores would be saved in the database (or sent into Firebase from the backend).
Does anyone know if something like this exists or if there is an open-source plugin that might provide some ideas on how to implement it?