WP Discourse: advanced custom filter for discourse_publish_format_html

I’m a new user, so I got a message I had too many links in my post, so

Link 1:

Link 2:

Link 3:
https://meta.discourse.org/t/wp-discourse-template-customization/50754/13