I’m trying to make a simple plugin that allows users to use fontawesome icons. For example, they would type:
[fa:envelope] and it would be replaced with the icon.
I’ve seen lots of plugins use
Discourse.Dialect.inLineBetween, which seems to be the standard. However, I don’t have a
stop. Is there a standard hook I should be using to process the text correctly?
I know that
Discourse.Dialect.postProcessText is a global receiver of text, but I don’t know if this is the way I should be doing it. Any help is appreciated :).
EDIT: Another concern I have is code blocks. Will this be handled automatically? In my experience
Disource.Dialect.postProcessText was passed text in raw sections.