Notifications
Clear all

[Solved] Triple Asterisks Causing Bold Red Text

3 Posts
2 Users
1 Reactions
137 Views
marsm
Posts: 140
Topic starter
(@marsm)
Estimable Member
Joined: 4 years ago

I’m running forums at Renewable Heating Hub using wpfofo, and I’ve come across a strange formatting issue. When I enclose text with two pairs of triple asterisks (e.g., *\*\*some text*\*\* (without the \\\)), the result is bold red text with the asterisks removed.

The same issue occurs on the forums here too. *\*\*some text*\*\* = some text

The issue only happens occasionally. For example, yesterday it occurred with some R output that unintentionally used two pairs of triple asterisks.

Does anyone know:

1. What might be causing this behaviour?

2. Is there an escape character or method I can use to stop the asterisks from being processed this way?

2 Replies
Sofy
Posts: 5124
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi,

This is designed by the plugin. However, you can disable it using the hook code below:

add_filter( 'wpforo_allow_replace_3asterisk', '__return_false' );

This article should be helpful for you: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

1 Reply
marsm
(@marsm)
Joined: 4 years ago

Estimable Member
Posts: 140

@sofy thank you!