Custom tags?

AI-generated summary

The discussion revolves around the possibility of implementing custom tags in Discourse that can be replaced with custom HTML and JavaScript. Samir_Sabri asks if it’s possible to define a custom tag like <my_custom_tag>content</my_custom_tag> that would be rendered as specific HTML with interactive features, such as clickable images that open URLs and glow on hover. Canapin requests a practical example and clarification on the intended functionality. pfaffman suggests referring to the Beginner’s guide to developing Discourse Themes and providing more context. Samir_Sabri clarifies that the tags would be generated by an external application and used to display interactive images. merefield points to a related feature, mentionables, which is currently broken but being fixed.

Hello

Is there a way to add custom tag that would be replaced by custom javascript and HTML tags ?
Example, <my_custom_tag>custom tag content</my_custom_tag> that would be replaced by html tags that I can define, is there a way to do so?

Have you a practical example of what would you to be the result, based on your example <my_custom_tag>custom tag content</my_custom_tag>?

And what would be the goal (in terms of features) of such “custom tags”?

Check out the Beginner’s guide to developing Discourse Themes. And including information about your problem rather than a solution might help get better answers here.

For example, I am thinking to embed a clickable image into forum for discussion, that will open a specific URL in a new tab when users click at, also image glow when mouser over.

So, ex: <custom_tag>432345</custom_tag> then be replaced with the html template to show the related image with required clickable behaviour and mouse over glow.

Users will get the custom tag as generated from my application.

Sounds a lot like Mentionables

(Which at the time of writing is broken on the front end. I will fix it very soon. I recently PR’d to fix the BE)