This plugin for Discourse formats Overwatch hero names in posts. It tries to intelligently match hero names in users’ posts, including those that are horribly misspelled, correcting their spelling, adding accent marks and other special characters where necessary, and prepending the hero’s icon to their name.
I’ve released it under the MIT License on GitHub.
See it in action and test it out for yourself on Crit Cola’s Discourse.
Add the plugin’s repository URL to your container’s
app.yml file, for example:
hooks: after_code: - exec: cd: $home/plugins cmd: - mkdir -p plugins - git clone https://github.com/critcola/discourse-overwatch-hero-icons.git
Rebuild the container:
cd /var/discourse ./launcher rebuild app
For the plugin to apply retroactively, you’ll need to rebake old posts:
cd /var/discourse ./launcher enter app rake posts:rebake