bobbingwide / oik-shortcodes

Shortcode, block and API server
https://www.oik-plugins.com/oik-plugins/oik-shortcode-server/
GNU General Public License v2.0
1 stars 0 forks source link

paired_replacements() converts a single ' * ' to '<em>/em>' #46

Closed bobbingwide closed 7 years ago

bobbingwide commented 7 years ago

In http://www.oik-plugins.com/oik_api/_bw_show_contact_form_oik/ the Description contains Note: The * indicates Required field

Expected output

As shown. The single * should not be converted.

Actual output

Note: The <em>/em> indicates Required field

This leads to the rest of the content being italicised.

Explanation

The asterisk is incorrectly treated as markdown emphasis by the paired_replacements() function.

Proposed solution

Check for overlaps in the paired replacements.

Workaround

Change the Description

bobbingwide commented 7 years ago

Questions: