• Resolved Bike Gremlin

    (@bikegremlin)


    When I use WordPress’ “Code” block (standard, that comes with the Gutenberg), it won’t show two dashes on the frontend (“–“), but will convert them to a single long dash.

    Disabling the WP YouTube Lyte plugin fixes the problem.

    I’d prefer if the plugin could be “fixed” so I could keep it running, without this auto-reformatting occurring.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    can you try this code snippet;

    
    add_filter( 'lyte_kinda_textureize', '__return_false' ):

    hope this helps,
    frank

    Thread Starter Bike Gremlin

    (@bikegremlin)

    Hi,

    Thank you for the quick reply. The filter did sort the problem out.
    Though it would be great for that to be included in an upcoming plugin update (unless it messes something else up).

    In case anyone else runs into the same problem, what I did was include this line in my child theme:

    // BEGIN WP YouTube Lyte plugin filter
    add_filter( 'lyte_kinda_textureize', '__return_false' );
    // END WP YouTube Lyte plugin filter

    The only difference was using a semi-column at the end (“;”) instad of “:”. I suppose it was just a typo.

    • This reply was modified 2 years, 4 months ago by Bike Gremlin.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    indeed, ; instead of : ??

    I might make false the default in the next release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Two dashes in code block get auto-converted into one long dash’ is closed to new replies.