• Rodrigo

    (@rghedin)


    Hi! I like to write/publish WordPress posts writing raw HTML, and I noticed that when WP YouTube Lyte is active, it parses YouTube URLs inside <a href=""> tags, breaking the post page.

    Like this:

    <p>Um bom uso da inteligência artificial: <a >dublar em outros idiomas grandes memes brasileiros</a> (em inglês).</p>

    When rendering in front-end, it creates a new paragraph after “artificial:”, shows the video embed, then shows the rest (“(em inglês).” in a third paragraph.

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

    (@optimizingmatters)

    that shouldn’t happen, obviously rghedin .. I just tried this out on my local development-site, but I can’t reproduce the behavior (see screenshots below) and indeed LYTE _should_ only act on standalone YT links (much like normal WordPress core oEmbeds).

    Do you use the “text” input in the classic editor, or do you use an HTML block in WordPress blocks or do you add the HTML in yet another fashion?

    LYTE test in HTML

    Thread Starter Rodrigo

    (@rghedin)

    Thanks for your reply! I was thinking and there are two possible culprits:

    1. Jetpack’s Markdown editor.
    2. A functions.php snippet that removes visual/WYSIWYG editor from Classic Editor — it’s HTML-only.

    I guess, since HTML editor exists anyway even without the snippet, that it’s probably some issue with Jetpack.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    likely the markdown one somehow indeed :-/

    Thread Starter Rodrigo

    (@rghedin)

    Any chance to WP YouTube Lyte to play nice with Jetpack’s Markdown?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    If I have some time I’ll install it and have a look, but can’t promise that will be any time soon rghedin, most of my time goes to Autoptimize and I’m starting a new job next Monday .. :-/

    Thread Starter Rodrigo

    (@rghedin)

    Ok. Thanks! (And have a good first day at the new job! ?)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Parsing YouTube URLs inside tags’ is closed to new replies.