• Resolved hobbyfr3ak

    (@hobbyfr3ak)


    Hello,
    i write some instructions about the docker and later i noticed that the code is always changed from “: –” to “: – “. So you cannot copy the code anymore.

    I enter the code with the Enlighter Plugin. It does not matter which text formatting I choose.

    Here is an example:
    https://ibb.co/vxqxLfM

    Result:
    https://ibb.co/nLWxKbL

    Can someone please help me.

    Thanks a lot.

    • This topic was modified 4 years ago by hobbyfr3ak.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andi Dittrich

    (@andi-dittrich)

    disable wptexturize – it’s not an Enlighter issue

    Thread Starter hobbyfr3ak

    (@hobbyfr3ak)

    Thanks for your quick answer.

    I have tried these instructions:
    https://www.thewebflash.com/how-to-properly-disable-wptexturize-in-wordpress/

    Unfortunately it does not work for me.

    Is there another way to disable wptexturize?

    Thanks for any help.

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    i’ve tried to reproduce the issue within the current version but it’s working as expected. maybe it is another plugin or your theme which applies the filter

    similar issue: https://www.ads-software.com/support/topic/enlighter-keeps-converting-double-hyphens-to-dashes/

    Thread Starter hobbyfr3ak

    (@hobbyfr3ak)

    Thanks for the help ??

    I could find the problem. It was because of the plugin “WP YouTube Lyte”. When I deactivated this, everything worked quite normal.

    Edit wp-youtube-lyte.php

    Try comment out, so double dashes are working again. Dont know why this plugin made this.

    `if ( apply_filters( ‘lyte_kinda_textureize’, true ) ) {
    // replace remaining double dash but restore it in comment tags (this is getting ugly though).
    // $the_content = str_replace( array( ‘ — ‘, ‘– ‘, ‘ –‘ ), ‘ – ‘, $the_content );
    // $the_content = str_replace( ‘<! –’, ‘<!–‘, $the_content );
    // $the_content = str_replace( ‘– >’, ‘–>’, $the_content );
    }`

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Enlighter converts colon, double hyphens”: –” to colon, hyphen “: -“’ is closed to new replies.