I think you are probably looking for this component: GitHub - discourse/discourse-icon. There isn’t a corresponding topic for it here on Meta at the moment, but it will work like this in posts:
[wrap=icon id="bookmark"][/wrap]
Other icon resources just in case you are interested: