I have a very simple question, but I can’t find the answer anywhere.
I want to create custom BBcode without a closing tag, how do I do that?
Thanks to this topic I already figured out how to replace [something]something else[/something] with html code.
But now I would like to find out how to just replace [something]. For instance, I would like to know how to replace [br] with <br>. Or just any substring (not containing a closing tag) with something else. I already looked at the source of the discourse-bbcode plugin, but every bbcode in that plugin has a closing tag.
Basically I am looking for something like this:
But then something that still works.
Can someone help me or point me in the right direction?
Du kannst Wörter durch andere Wörter ersetzen oder Wort(e) durch einen Link ersetzen. Dies geht über Admin → Anpassen → Beobachtete Wörter. Dies gilt ab Discourse 2.7 und neuer.
Du kannst jedoch keine Wörter durch Markup ersetzen, da dies durch die Einschränkungen unserer Rendering-Pipeline nicht möglich ist.